-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install and configure Redux Toolkit #2187
Install and configure Redux Toolkit #2187
Conversation
…oolkit # Conflicts: # client/modules/App/App.jsx # package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely Done 👍
Hey! Just wanted to ask here since this PR should definitely get in before the end of the year 😅 if you're okay with having your PR edited by others (like in the case of merge conflicts), of if you'd prefer to handle them yourself! (I'm not sure if there's an etiquette for this?) |
Hey I'm fine with you doing it if you understand the conflicts. Like I definitely don't care if you regenerate a I'm looking at this now though and hopefully I can resolve this one. Sometimes I have problems when I go to merge in the
|
…oolkit # Conflicts: # client/modules/App/App.jsx # package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working through the conflicts! I'm going to quickly merge this in now then while it's good.
This is step 1 of issues #2042 and #2186
Implements the recommended first step in the Migrating to Modern Redux guide
Changes:
@reduxjs/toolkit
.configureStore
.redux
and@redux-devtools
packages to their latest versions to resolve a warning:DockMonitor
if the browser extension is not installed. Using both causes problems.window.devToolsExtension
to currentwindow.__REDUX_DEVTOOLS_EXTENSION__
.reselect
as a top-level dependency because it is bundled with RTK.createSelector
fromreselect
to@reduxjs/toolkit
.listenerMiddleware
and link it to the store. This is just a tool which can be used in future PRs and does not do anything right now.Note:
redux-thunk
is also bundled with RTK, but it needs to stay as dependency because is used directly in some test files.I have verified that this pull request:
npm run lint
)npm run test
)develop
branch.Fixes #123
Questions:
window.__INITIAL_STATE__
in ourindex.jsx
. It seems like it's used as a way to pass state from the backend to the frontend, but I don't see anywhere in theserver
part where we are setting this property.configureStore
, I'm not sure if we really need the manual setup of theDockMonitor
on top of that?Here's what it looks like in Edge, where I have no browser Redux DevTools, and the
DockMonitor
is shown:In Chrome, the
DockMonitor
won't show up on top of the web app anymore but the browser Redux DevTools work! Those tools show the Log but also a bunch of other stuff.