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
Describe the bug
If a component has a fetch() and is included via a dynamic component <component :is="..."/> , then the fetch() is called twice (on ssr AND client). When registering the component globally (e.g. via a plugin), its working and fetch() is only called once.
Expected behavior
Fetch should be only called once when SSR is activated
Additional context
Background: We are trying to load a list of components from our CMS (Storyblok), and want to show these components via the dynamic component.
The text was updated successfully, but these errors were encountered:
Hey @jony1993 ;-)
Thanks for reporting! Today i tried to use <component /> with a manual component import and a disabled auto-import. It worked as expected without calling fetch() two times:
Describe the bug
If a component has a fetch() and is included via a dynamic component
<component :is="..."/>
, then the fetch() is called twice (on ssr AND client). When registering the component globally (e.g. via a plugin), its working and fetch() is only called once.To Reproduce
Sandbox: https://codesandbox.io/s/blue-bush-5lyew
Expected behavior
Fetch should be only called once when SSR is activated
Additional context
Background: We are trying to load a list of components from our CMS (Storyblok), and want to show these components via the dynamic component.
The text was updated successfully, but these errors were encountered: