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

fix: use react forceUpdate instead of deep-force-update #130

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

nicolascrop
Copy link
Contributor

Got a bug which only occurred in production build. (react-script build && serve -s build). If i had to rerender I18n component due to a setLanguage it would crash the application. The error occurend on this line in react-deep-force-update package. (root was undefined).

The error:
image

I wrote a new Component which use React forceUpdate method and it worked like a charm. Feel free to use it, might save a day or two for the next one.

@francescarpi francescarpi merged commit 77b44de into APSL:master Jul 14, 2021
@francescarpi
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

4 participants