get-convex / get-convex/convex-react-query

Suspense Queries that can't connect suspend forever

Open
#22 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
41
Forks
7
PR merge metrics
No merged PRs in 30d

Description

If the WebSocket can't connect, should the useSuspenseQuery call throw after some timeout? This shouldn't interfere with later operation when e.g. the client goes offline temporarily, but on initial load if data can't load, generally it's the queryFn's job to throw instead of retrying forever.

We ran into this in the TanStack docs: from https://github.com/erquhart/convex-oss-stats/issues/7

This should still fail loudly, but it's totally plausible that the client WebSocket won't work and the hyrated data should be shown.

repro: https://github.com/get-convex/convex-react-query/pull/21

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.