Replace Redux implementation in ./web with Redux Toolkit
to better review the changes in src/redux folder, use this diff view (ignoring white space changes)
Summary
replaced reducers with RTK slices
actions and async actions no longer need a store, they will use the one instantiated from src/redux module.
we no longer import mainStore for getting the state, we shortcut that using getState().
no changes regarding refactoring the state, although i added comments on using EntityAdapter, maybe we can also reconsider the folder structure of src/redux, on a separate PR.
Description
Replace Redux implementation in
./web
with Redux Toolkitto better review the changes in
src/redux
folder, use this diff view (ignoring white space changes)Summary
src/redux
module.mainStore
for getting the state, we shortcut that usinggetState()
.src/redux
, on a separate PR.Type of change