Svelte Docs question, esp Async section #6434
Unanswered
jeremybradbury
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
RE: https://www.graphql-code-generator.com/docs/plugins/typescript-svelte-apollo#with-async-queries
the beginning of this section says:
but then later shows this, however this magic new AsyncTransactions is not generated. I believe this is an omission/mistake in the above query's name?
However, when I use Svelte as documented above (in node 14/stable), using the
#await
on a query, the api call is never even fired from the browser.In contrast when I treat this simply as an observable, the api call shows a successful result in the network tab but never updates the observable in the dom, then triggers a cannot map of undefined or similar such problem where it should have an empty array or results when truthy.
I have only been able to get mutations and subscriptions working so far. What's the secret sauce for simple queries without any variables?
Beta Was this translation helpful? Give feedback.
All reactions