I think you want
export const { addTodo } = todoSlice.action;
to be actions ?
actions
because redux requiring pages and pages of intricate boilerplate wasn't confusing enough so there's some autogenerated magic in there too. or maybe its just JS lib churn
Hi! Thank you so much for leaving this comment. Good catch! I just updated the code.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think you want
export const { addTodo } = todoSlice.action;
to be
actions
?because redux requiring pages and pages of intricate boilerplate wasn't confusing enough so there's some autogenerated magic in there too. or maybe its just JS lib churn
Hi! Thank you so much for leaving this comment. Good catch! I just updated the code.