-
Notifications
You must be signed in to change notification settings - Fork 162
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
Consider enabling default middleware checks on Redux store #1712
Consider enabling default middleware checks on Redux store #1712
Conversation
e2e2138
to
b0199d6
Compare
The function name itself isn't very informative. Add more info from the doc page¹. ¹ https://redux-toolkit.js.org/api/getDefaultMiddleware#included-default-middleware
Reasoning added as a comment.
This is useful but makes things slower upon state changes. I think still reasonable to have because: 1. It's only included in dev mode 2. The slowness in dev mode is not too noticeable (50~200ms on my machine) The console warnings hint to disable it if the slowness becomes unbearable.
b0199d6
to
2941948
Compare
README.md
Outdated
@@ -75,6 +75,18 @@ If you are editing source code, running the following command will allow hot-rel | |||
auspice develop --datasetDir data | |||
``` | |||
|
|||
#### Environment variables | |||
|
|||
The server looks for some environment variables. All are optional. |
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.
Nitpick, but /server/client/
. (It's been a perpetual source of confusion to people over the years as Auspice can mean both the server and the client.)
The server does also look for some variables, the most common being PORT
and HOST
, so over time we can include them.
And then there's variables which are essentially compiler arguments, e.g. BABEL_*
, which I would categorise separately to the server.
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 the clarification. This is something I haven't looked into much and doesn't seem to be spelled out in docs. I'll look further and update docs in a future PR.
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.
Nevermind, I see it's in the RTD docs. I'd think to move all dev-related docs there since currently those are split between README, DEV_DOCS, and RTD docs.
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.
Looks good, pending the one minor syntax change.
7d14334
to
a003a32
Compare
Follow-up to dcd83c0.
Checklist
(to be done by a Nextstrain team member) Create preview PRs on downstream repositories.N/A, no functional changesignoredPaths
to an empty array and runningexport SKIP_REDUX_CHECKS=true && npm run dev
shows no console warnings/errors related to the immutability middleware.