Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscribeToMore "skip" option in Composition API #1577

Open
zaviermiller opened this issue Oct 21, 2024 · 0 comments
Open

subscribeToMore "skip" option in Composition API #1577

zaviermiller opened this issue Oct 21, 2024 · 0 comments

Comments

@zaviermiller
Copy link

zaviermiller commented Oct 21, 2024

Is your feature request related to a problem? Please describe.
Currently, there isn't a good way to specify when subscribeToMore should be disabled with the Composition API.

Describe the solution you'd like
After looking at the docs, there is a skip option in subscribeToMore for the Options API, which is missing in the Composition API.

Describe alternatives you've considered
I've tried putting the subscribeToMore calls behind if statements/watchers in my setup script, but the subscription is still registered. I think this is because I have reactive variables that change, causing the subscribeToMore to automatically rexecute even when I don't want it to. Ideally, I can have reactive query variables that cause the query itself to update when they change, and can still skip the subscriptions separately.

Additional context
No other context for now, I can create a minimal repro a bit later if requested.

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

No branches or pull requests

1 participant