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
What @Radiergummi says is true, that there is an option to provide a custom fetch function now. But this seems to be buggy (at some point they used await fetch instead of await this.fetch. I can see that version 6.6.7 of storyblok-js-client contains a bugfix for this exact problem. Since @storyblok/svelte uses @storyblok/js@^3.0.6 as a regular dependency and that in turn uses storyblok-js-client@^6.6.3 as a regular dependency, the bug fix seems to not be included yet. As far as I understand it, @storyblok/js needs to cut another release with the latest version of storyblok-js-client and @storyblok/svelte needs to do a release with that new release of @storyblok/js then.
Not sure if these dependencies should be marked as peer dependencies as you'd have to install them manually then, but at least we could have all fixes right away...? 😕
Is there some automated release process which takes care of this? I'm trying to figure out whether I need to create a patch for myself or whether I can wait for a release to happen 😅
The way SvelteKit does hydration is by caching the result of any
fetch
call. There is no obvious way to provide this fetch function to the apiPlugin.Please either add the possibility to do so, or document it. (This will also result in less http requests hitting your servers).
The text was updated successfully, but these errors were encountered: