-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load
always gets empty query parameters on the clientside
#586
Comments
I don't see a bug here, and I think this is just a matter of how the browser console is displaying the |
Oh, also, unlike with Sapper, |
zhammer
added a commit
to zhammer/writing
that referenced
this issue
Jun 14, 2021
zhammer
added a commit
to zhammer/writing
that referenced
this issue
Jun 14, 2021
* start with some package.json work * use svelte.config.js * start on file changes * directory page now loads * getting closer * fix mount * get export working * fix query params sveltejs/kit#586 (comment) * switch to module * add .nvmrc * switch plugins/index.js to ts * more fixes, getting rid of sapper refs * last sapper ref
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It appears that whilst query parameters passed to a page are available to the server-side
load
, the client-sideload
always has an emptyURLSearchParams
object.To Reproduce
Check out the repro project atttached. Hit any of the links on the page and examine the browser console. Now refresh any of the pages and observe the server console.
Expected behavior
I expect to see my query parameters client-side and be able to use them:
Reproduction
query-param-issue.tar.gz
Logs
Server side:
Client side:
Information about your SvelteKit Installation:
npx envinfo --system --npmPackages svelte,@sveltejs/kit --binaries --browsers
Static
Severity
Blocker
The text was updated successfully, but these errors were encountered: