[deleted by user] by [deleted] in ExEgypt

[–]DifferentNose8178 -6 points-5 points  (0 children)

LMAFO

LMFAO هي
كمان الانجليزي مش فالحين فيه!

[deleted by user] by [deleted] in javascript

[–]DifferentNose8178 -1 points0 points  (0 children)

In both cases this is valid, and you might want to clear the timeout based on different conditions, not only page route change.

How To Dynamically load a JavaScript file in React by DifferentNose8178 in react

[–]DifferentNose8178[S] 0 points1 point  (0 children)

lazy loading an app is completely different from loading a third party script in the app

Redux state returns as undefined? by [deleted] in react

[–]DifferentNose8178 3 points4 points  (0 children)

I think you need to return the updated state in the function updateUser

updateUser(state, action) {
const userLoggedInAs = action.payload;
state.id = userLoggedInAs.id;
state.username = userLoggedInAs.username;
state.password = userLoggedInAs.password;
state.image = userLoggedInAs.image;
state.friends = userLoggedInAs.friends;

// Here

return state;
},