311-data
311-data copied to clipboard
Frontend is not compatible with Redux Devtools
Overview
Redux Devtools makes debugging and viewing redux state much simpler. We should make our frontend compatible with this extension. See this post for instructions.
It looks like we've installed and activated Redux Devtools two years ago (PR #289), but the extension is greyed out when I'm on the dev site.
Action Items:
- [ ] We should rename "webpack.dev.js" to "webpack.local.js", and create a new "webpack.dev.js" file that is the same as "webpack.prod.js", but it specifies mode as "development". See context in comment below.
Ah, so Redux Devtools only works locally because we're specifying development-only in the extension importing.
Currently, when we bring up the dev and v1 site, we are specifying that the mode is "production" (e.g., for dev, we run npm run build, and build uses the webpack.prod.js config). We should rename "webpack.dev.js" to "webpack.local.js", and create a new "webpack.dev.js" file that is the same as "webpack.prod.js", but it specifies mode as "development".
Hey @edwinjue can you help us update this issue?
Please update:
- Progress:
- Blockers:
- Availability:
- ETA:
Thanks!
Redux devtools should already be working on local development environment as I already have it installed