You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see on the screenshot below the actions were properly called, but the state wasn't properly updated on the component. The printed state (which was printed on the render method) doesn't contain the updated state, neither the exercise was added to the entities object nor the exerciseId was added to the exercises array on the Plan object
but if you see on the dev tools, both objects are correct... Thanks in advance, any help is appreciated
The text was updated successfully, but these errors were encountered:
The excercize.js component in your project copies its props to state in the constructor for a reason I don't understand.
Please fix these two issues, update the project, and if you still have problems, I can take another look. In the future, please avoid asking questions as issues in Redux Thunk repo, as your questions are not related to it. It's best to ask for help on StackOverflow.
so on my component I call this
dispatch(actions.createExercise(planId))
which calls this action creator
and this are the reducers (only pasted the relevant parts of the code)
As you can see on the screenshot below the actions were properly called, but the state wasn't properly updated on the component. The printed state (which was printed on the render method) doesn't contain the updated state, neither the exercise was added to the entities object nor the exerciseId was added to the exercises array on the Plan object
but if you see on the dev tools, both objects are correct... Thanks in advance, any help is appreciated
The text was updated successfully, but these errors were encountered: