You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there's a way to prevent the short flicker of the content displayed with a liveQuery on route changes in my SvelteKit app. I thought about something like moving the query to a place that only mounts once - like a store etc. So far I wasn't able to do it (I couldn't figure out type checking in the context of store.ts and the flickering didn't go away).
Do you guys know if this is possible at all, or does the nature of a liveQuery not allow for this? I was also wondering if i'st a bad idea anyway - will it influence performance since multiple queries run at the same time?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I was wondering if there's a way to prevent the short flicker of the content displayed with a liveQuery on route changes in my SvelteKit app. I thought about something like moving the query to a place that only mounts once - like a store etc. So far I wasn't able to do it (I couldn't figure out type checking in the context of store.ts and the flickering didn't go away).
Do you guys know if this is possible at all, or does the nature of a liveQuery not allow for this? I was also wondering if i'st a bad idea anyway - will it influence performance since multiple queries run at the same time?
Thanks and cheers
Beta Was this translation helpful? Give feedback.
All reactions