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
I tried to create a params.svelte.ts file and initialized params in that file it works as long as I don't use ssp in it.
I am trying to create a params instance in a params.svelte.ts file and pass it to components from +page.svelte
this also works but I am not sure if this is the correct way
// params.svelte.tsimport{queryParameters}from'sveltekit-search-params';exportconstgetParams=()=>queryParameters({page: ssp.number(1),q: ssp.string()});// in each componentconstparams=getParams();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried to create a
params.svelte.ts
file and initialized params in that file it works as long as I don't use ssp in it.I am trying to create a params instance in a
params.svelte.ts
file and pass it to components from+page.svelte
this works
this also works but I am not sure if this is the correct way
this does not work and throws exceptioin
https://www.sveltelab.dev/7qh2xfe0od74zy8
Beta Was this translation helpful? Give feedback.
All reactions