Skip to content

Stream resuming fails after tab changes #3460

Description

@justinbelcher

Versions

  • Client: 1.1.4 (via electric-db-collection 0.2.1)
  • Electric: version 1.2.4

Bug description
Electric tanstack-db collection fails to resume after changing tabs n=2 times. It does not need to be rapid. Changing back a third time causes the stream to resume, strangely.

I did not observe any logged errors. We are using an authenticated fetch client and onError handlers (which retry w/ auth) in tanstack-db electric ShapeOptions.

Pictured: hung state after second tab change (w/ patched-in logging). tanstack-db optimistic mutations fail after timeout.

Image

Expected behavior
Stream resumes consistently (or we have additional options to control resume behavior)

Note

The fix in #3431 does not appear to address this issue for me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions