redux-dynamic-modules icon indicating copy to clipboard operation
redux-dynamic-modules copied to clipboard

React 16.13 incompatibility

Open ljosberinn opened this issue 5 years ago • 0 comments

Due to the recent React 16.13 update, the default behaviour of DynamicModules leads to a warning.

react_devtools_backend.js:6 Warning: Cannot update a component from inside the function body of a different component.
    in DynamicModuleLoaderImpl (created by Context.Consumer)
    in DynamicModuleLoader (created by RedactedComponent)

It's probably easily resolved by removing the default behaviour and just keeping the StrictMode mode, essentially removing the strictMode prop too. At least within StrictMode and letting the modules know about it we don't see this warning.

ljosberinn avatar Mar 16 '20 15:03 ljosberinn