Skip to content
Discussion options

You must be logged in to vote

I finally got it working after some painful debugging. Seemed like I was doing multiple things wrong.

  1. Apparently you shouldn't use the legacy {#await} blocks with remote functions (from #15655). Instead, svelte:boundary should be used (the new async-await syntax).
  2. When using the remote query in multiple places, it should be defined/derived in a single location, and then awaited everywhere. It should still only call it once, but will correctly refresh data.
  3. It is not possible to use the await pinState ? "" : "" ternary statement with a web component like iconify-icon. This will throw a very confusing error that got me stuck for a while.

In the end, this is what worked for me:

<button
    c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Jan-DT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants