Skip to content

Conversation

arnolicious
Copy link

Description

This fixes an effect_orphan error that occurs, when createQuery gets called in an event listener, or simply outside of component initialization.

I simply added $effect.root around the $effects in createBaseQuery.svelte.ts which fixed the error on my end while seemingly not breaking anything.

… initialization

Add $effect.root to allow creating queries in event handlers. Previously creating a query outside of component initialization would throw an effect_orphan error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant