Warm tip: This article is reproduced from stackoverflow.com, please click
redux redux-toolkit

Switching steps with redux-toolkit updates the store state not the view

发布于 2020-03-28 23:16:17

Hello I have a component StepWizard with local state.

I'm trying to change it to use redux-toolkit instead.

I'm stuck on switching the steps with state provided from store. What I'm trying to achieve is to be able to control the changing the steps inside of StepWizard and outside. Can someone please give me a hint what I'm doing wrong? Thank you.

Questioner
Verthon
Viewed
38
Verthon 2020-02-04 16:25

The problem was using redux without any library that binds both together. And also passing store manually to components. Everything works smooth wit react-redux + redux-toolkit set.