In SvelteKit, I want to access page.params without using the SSR load function because I want to have client side rendering only. Is there any way to access page.params without the SSR load function?
I got the solution.
import { page } from "$app/stores";
const { slug } = $page.params;
and in this way I got the params without the load function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With