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
This ends up preventing actions in a specific area from updating state in a separate area. We should look into re-organizing the state by data field, rather than exactly mirroring the folder setup. We may also want to consider if Redux is necessary, and if using useContext and useState is a better option for our use case.
The text was updated successfully, but these errors were encountered:
We've decided to try using Redux Toolkit in order to refactor our state. We have notes on this in the board Notion, so you can read about the design choice there.
As for tasks to do, this involves taking all the boilerplate we have and moving it to effectively what RTK does (which is slices).
I've assigned Sean on this, since he's most experienced with RTK, and we can discuss the various changes in the PR he will make when we review it.
Create slice files for RTK for each feature folder in UI (so storeActions, storeReducer → storeSlice)
Compose slice file into separate RTK store
Move actions and reducers to RTK store one at a time(test if portal breaks with each slide adding)
If this proves too hard to do without breaking the other parts of portal, just move it all at once and we'll test bugs at review
The current Redux store divides state into components as follows:
This ends up preventing actions in a specific area from updating state in a separate area. We should look into re-organizing the state by data field, rather than exactly mirroring the folder setup. We may also want to consider if Redux is necessary, and if using
useContext
anduseState
is a better option for our use case.The text was updated successfully, but these errors were encountered: