-
Notifications
You must be signed in to change notification settings - Fork 289
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
Console warnings for soon-to-be-deprecated React lifecycle methods #492
Comments
You can use https://github.com/reactjs/react-lifecycles-compat to maintain backwards compatibility. |
Hey. sorry for the late response. I think instead of using UNSAFE_* methods, we should just avoid We're happy to look into a PR. |
This is mostly fixed by #509 and v1.1. There's still one remaining use of deprecated lifecycle methods which couldn't be removed w/o introducing breaking behavior. We're investigating further and will leave this open while we address that issue. |
There is still one componentWillReceiveProps.
|
Sorry, it's too much noise in the console. Can we fix this temporarily by amending If you like that idea, can do a PR ... |
@pradeepnschrodinger is better to discuss the issue. I believe there are issues related to the synchronization of the component and the redux store. |
Thanks for the response! I'd love to find out more - I updated the PR description to match guidelines in case the fix is as simple as that; totally understand if there's something under the hood with the redux store that I'm missing. |
Looking at this comment some of this may also be driven by a desire to not drop support for React < 16.3 until we can do a minor release. |
I actually didn't use the |
Apologies; messed up the PR procedure and didn't realize I was default making a PR to the main project with the one that needed to merge to my forked master branch first. Updated with #600 |
The breaking behavior when we rely on Basically, when there's new props, FDT's redux store is only updated with the props AFTER the table is rendered, because store update is tied to
The second point is a breaking change -- during the first render, the cell renderers will be called with mismatched/stale props because the redux store has not been updated with the new props yet. |
React will be deprecating some of its lifecycle methods in the next major version. https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
React 16.9 started displaying console warnings about the soon-to-be-deprecated methods. https://reactjs.org/blog/2019/08/08/react-v16.9.0.html
The text was updated successfully, but these errors were encountered: