Pass session to non-route load
See original GitHub issueI’m using svelte-kit and houdini (looking awesome I might add). BUt I’m having difficulty getting session state in the variables.
I’m expecting something like this to work.
<script context="module" lang="ts">
export function MyQueryVariables({ page, fetch, session, stuff }): MyQuery$input {
return {
...session.state
}
}
</script>
But the function is only being called with page as a parameter.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
how to pass a session value in different route in express ...
I have creating a username session of success login in controller and i wan the session value in the route back so that...
Read more >How to pass variables to a workflow using a reusable ...
How to pass variables to a workflow using a reusable mapping sessions. In reusable sessions you can not use pre-session variable assignment.
Read more >$_SESSION - Manual - PHP
An associative array containing session variables available to the current script. ... Load the page, OK it displays 42, reload the page... it...
Read more >Session object - R Shiny - RStudio
If a reconnection is successful, the browser will send all the current input values to the new session on the server, and the...
Read more >How Rails sessions work - Justin Weiss
session is the perfect place to put this kind of data. ... every time you make a request, your browser will send the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah nice catch! I’ll leave this ticket open to track passing session to component loads. If you wanted to take a stab at this, here is where the non-route version of
query
is implementedHonestly, this was easier than I hoped, see #295