Repository navigation
Conversation
Keep reads registered across retryable outages and intentional pauses. Surface a terminal policy decision to pending loads and retain usable rows for a subsequent catch-up. Co-Authored-By: OpenAI Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A route awaiting its first snapshot can hang when the server accepts a WebSocket and then closes it with
4403 org access denied. Conversely, failing the first dial on TanStack DB 1.0 ends the sync run even when the transport is already retrying.This implements ADR-0029. Pending reads wait through automatic retries. When the policy gives up, eager preloads and pending subsets reject with
TransportStoppedError, including the close details or underlying cause. An explicitclose()pauses registered reads, so a remount can finish the original load. Ready collections keep their rows and registrations for catch-up. The pre-1.0 first-dial failure signal is preserved.Breaking change and migration
Apps that refresh credentials in
onClosedand then callconnect()need to restart a first load that already rejected. For transparent recovery, the app can allow a retry for its expiry code and have the socket opener await fresh credentials. The README includes an example of both expiry and permanent denial.Verification
@tanstack/db0.8.6, 0.9.2, and 1.0.0-rc.1.5.