DEV Community

loading...

Discussion on: Redux Crash Course with Hooks 🎣

Collapse
chrisachard profile image
Chris Achard Author

Are you using redux with React?

If you are, then React will respond to the data update by only re-rendering components that pull out data from the store that has changed.

If you aren't using React (it sounds like you aren't maybe, because you wrote your own callback that re-renders your UI?), then I can't help much - sorry! In that case you would need to write code to figure out which parts of the UI need to update. You shouldn't need to use two stores to do that - it's possible with just one.

Collapse
ibrahimkholil6210 profile image
Ibrahim Kholil

Thank you very much for your response i really appreciate it!