Replies: 2 comments
-
Yes and to add to it, the back button is actually making a call to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
svelte-query
and+page.server.ts
is where I'm pre-fetching data for the page, and using svelte-query's dehydration/hydration to pass the the data to the client.Navigating is now ever so slightly slower having to wait for
__data.json
to load on subsequent navigation.What I'd like is for
+page.server.ts
only be used for the inittal SSR page render. On subsequent page navigation svelte query can handle fetching the data client side as it needs, being able to take advantage of it's cache and have loading states where I need etc.I've hacked a solution by adding this to the top of the
handle
hook or could look into a web worker to do this.But would like to disable the request all together.
Beta Was this translation helpful? Give feedback.
All reactions