-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch() is called twice when using is-Directive / Dynamic Component #198
Comments
Hey @jony1993 ;-)
But with an enabled auto-import fetch() is called two-times (SSR & client). Also navigating from page to page on the client. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: