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:
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.
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:
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.