electric-sql / electric-sql/electric

Give ShapeStream ability to pause

Open
#2,212 8 comments 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10.4k
Forks
375
Avg merge
3d 1h
Merged PRs (30d)
18

Description

This could be used manually by people but also a few APIs have come up:

- expose an `enabled` option in `useShape` so people could toggle the stream long polling on and off https://tanstack.com/query/latest/docs/framework/react/guides/disabling-queries
- auto-pause long polling from useShape after the user has been inactive for so long and reactivate it when the user is active again

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.