-
Notifications
You must be signed in to change notification settings - Fork 28
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
Remove legacy dvajs ; unblock react update #768
Comments
A quick test of changing a component (not a screeen) from dva to react-redux leads to runtime error when the component is displayed. e.g. CTPopup.jsx
|
Looks like dvaJS just added support for React 18 and I don't think it's blocking a node upgrade either, so we can actually hit those first, upgrade our other dependencies and then tackle dvaJS. I do think it's still worth removing since the React world has largely moved on from the conventions of then, and newer libraries have solved the issues dva solved. A lot of the documentation isn't in English and all the other reasons of removing it still hold. Removing dvaJS has a few different parts. Their official documentation says:
Removing DvaJS will be in a few parts of just using the underlying libraries by themselves instead of dva itself.
For each pattern we can maybe write tests for 2-3 files for existing behavior, then replace the |
More motivation to remove dva: #648 😩 |
Tracking react upgrade here: #818, maybe after this, we can tackle removing dvajs |
https://umijs.org/ - looks like the Chinese big tech community has largely moved onto umi which takes the dva react concepts further and creates a tighter integration with fewer APIs required. So looks DVA is largely a thing of the past now from what I can tell |
dvajs is legacy, unmaintained, poorly documented and preventing us from moving to a more recent react version. It is likely that modern react components mean we don't need it.
We are using it for routing, history, and redux connect. However there are warnings in the browser console that are likely from dva -
The text was updated successfully, but these errors were encountered: