ganapativs / react-dynamic-import

Dynamically load and render any react module(Component or an HOC) using dynamic import 🎉

Home Page:https://codesandbox.io/s/react-dynamic-import-hooks-demo-108-kuf3u

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React hooks issue

nctay opened this issue · comments

Hi!
I have trouble with last versions that use hooks.
When using any of this versions i got "Invalid Hook Call Warning".
v1.0.4 works fine, no errors.
React version is
image
What else can i do, to make newer versions work ?
Thanks for this amazing lib, though :)

Hey, Sorry for the delayed response 😅

react-dynamic-import versions after 1.0.4 should work fine with any react versions >16.8.0.

Possibly there are multiple react versions or you have mismatching react & react-dom versions. If you are using webpack or any other bundler, just alias react to the latest/your version.

Check out these links for more info

If possible, share minimal repro. it should help debug the issue further.

I hope the issue is resolved by now. closing for now. re-open if you have any questions.