question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass session to non-route load

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AlecAivaziscommented, Oct 8, 2021

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 implemented

0reactions
fehnomenalcommented, May 6, 2022

Honestly, this was easier than I hoped, see #295

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found