You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Next should refresh dynamic imported components using HMR.
Current Behavior
This bug depends on the place where the dynamic component is created. It works when the dynamic component is created on a page, but it doesn't work when it's created outside and imported using a regular import x from.
Steps to Reproduce (for bugs)
Create a component:
exportdefault()=><p> I am the component</p>;
If you import that component and create the dynamic component on that page, HMR works:
Expected Behavior
Next should refresh dynamic imported components using HMR.
Current Behavior
This bug depends on the place where the dynamic component is created. It works when the dynamic component is created on a page, but it doesn't work when it's created outside and imported using a regular
import x from
.Steps to Reproduce (for bugs)
Create a component:
If you import that component and create the dynamic component on that page, HMR works:
But if the dynamic import is on a different file, for example
DynamicComponent.js
:And you import it on a page with a regular import, HMR doesn't work:
The rest of the dynamic import functionalities seem to work fine even on both cases, like SSR.
Your Environment
The text was updated successfully, but these errors were encountered: