-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Wrong variable function input for inline component queries #421
Comments
Btw: my current workaround is by defining the query in a gql file and calling via |
Thanks for reporting this @fehnomenal Most of How urgent do you need it in preprocessor? Do you want to give it a shot? |
Ah crap! I totally forgot to verify that we fixed your Also, just a heads up it looks like |
Well, as the project is just for a side business and not my day job and there is a workaround available it is not on the top of my priority list. When I get a few minutes I will tackle it. |
Wow, thanks for mentioning that. We'll see if there and what will be a replacement. Maybe it's time for me to fully switch to stores and ditch the inline queries |
I was able to sneak in some time tonight so I put #423 together. Hopefully that addresses your issue |
I wrote about this already here: #366 (comment) but now the problem resurfaced while trying to upgrade another project to the new store API.
Basically the problem is that the variable function only gets two values when being executed in the client, namely
props
andsession
:houdini/src/preprocess/transforms/query.ts
Lines 735 to 764 in 8be5953
My old code is using
stuff
viapage
but this is obviously no longer working.Directly using
$page.stuff...
does not work because "Cannot reference store value inside <script context="module">".Route
...Variable
functions get aLoadEvent
passed. Can we try to pass component...Variable
functions a trimmedLoadEvent
? Something like:The text was updated successfully, but these errors were encountered: