Skip to content
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

a bit dated, can be updated for using react hooks? #18

Open
bjm88 opened this issue Dec 7, 2020 · 1 comment
Open

a bit dated, can be updated for using react hooks? #18

bjm88 opened this issue Dec 7, 2020 · 1 comment

Comments

@bjm88
Copy link

bjm88 commented Dec 7, 2020

I am getting weird warnings about old react context api, can't get it to load properly with useEffect and react hooks, example please...

@bjm88
Copy link
Author

bjm88 commented Dec 7, 2020

Yeah doesn't work with react 17
Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: Connect(t), DynamicComponent, Provider, Styled(button), Styled(div), ThemeProvider, t

Learn more about this warning here: https://reactjs.org/link/legacy-context

gets a 400 loading. Had to move to componentDidMount or also error setting state before mount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant