get-convex / convex-svelte

https://convex-svelte.vercel.app
Apache License 2.0
22 stars 5 forks source link

useQuery result is never in error state #9

Open thomasballinger opened 2 months ago

thomasballinger commented 2 months ago

see https://discord.com/channels/1019350475847499849/1278420438149496952/1287820179883167806

The code as written doesn't use the onError callback to const unsubscribe = client.onUpdate(), which isn't required; but the code as written also isn't catching the error.

The change I'm trying out is using onUpdate and also catching the error from client.client.localQueryResult().