Skip to content

Fix TypeScript React provider reconnect#5185

Draft
gugahoa wants to merge 1 commit into
masterfrom
gugahoa/ts-sdk-react-reconnect
Draft

Fix TypeScript React provider reconnect#5185
gugahoa wants to merge 1 commit into
masterfrom
gugahoa/ts-sdk-react-reconnect

Conversation

@gugahoa
Copy link
Copy Markdown

@gugahoa gugahoa commented Jun 2, 2026

Mark DbConnection inactive before disconnect/connectError callbacks so consumers see a closed connection.

Teach ConnectionManager to clear closed retained provider connections and rebuild them after a short delay while a provider remains mounted. Cancel pending reconnects during release to preserve StrictMode cleanup behavior.

Add lifecycle/reconnect regression tests and document that this recovery is provider-level only.

Description of Changes

API and ABI breaking changes

Expected complexity level and risk

Testing

Mark DbConnection inactive before disconnect/connectError callbacks so consumers see a closed connection.

Teach ConnectionManager to clear closed retained provider connections and rebuild them after a short delay while a provider remains mounted. Cancel pending reconnects during release to preserve StrictMode cleanup behavior.

Add lifecycle/reconnect regression tests and document that this recovery is provider-level only.
@gugahoa gugahoa self-assigned this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant