Open plckr opened 1 year ago
Hey @plckr good point, you want to make a PR for it?
I'm with the same trouble, I don't know how can I achieve that keeping a good readable code. I think the only way is to duplicate the code between the two files which I don't like it much 🤷♂️
For example: In a load function you can have the initial fetch, but in the svelte page you can have some filters or variables to change
Hey
Isn't it better to put the query inside the load function instead of
+page.svelte
? https://github.com/spences10/sveltekit-with-urql/blob/main/src/routes/character/%5Bid%5D/%2Bpage.js