-
Notifications
You must be signed in to change notification settings - Fork 68
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
Upgrade to react
and react-dom
18.x
#3372
Comments
react
and react-dom
17.xreact
and react-dom
18.x
Also requires an update away from enzyme: |
It turns out the react upgrade itself is fairly easy but there are a few adjacent dependencies that we should also consider upgrading at the same time (my recommendations in emoji form):
|
So the further I move down this path, the more it becomes clear that this is a pretty tough refactor so I'm going to propose breaking it up even further and doing additional research. The main sticking point is that we're currently using Redux for state management and React-Router-v6 is extremely reliant on React Hooks (Redux and React Hooks being mostly mutually exclusive as patterns). It seemed like there was a way to maintain both except I'm not sure how to resolve Redux actions which are used for redirection, which now require a hook variable (and thus can't be made as "pure actions" or easily used outside React components). I think our path forward looks something like this
|
More attempts at this and a new, more modular plan Context: the original (above) plan is semi-plausible but requires a huge initial lift that would be quite hard to test and review. A partial attempt at this can be seen at
|
react
dep to 18.xreact-dom
dep to 18.xreact
from dependabot "ignore" configreact-dom
from dependabot "ignore" configThe text was updated successfully, but these errors were encountered: