You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mtrezza
changed the title
[Feature] Add a Trigger for BeforeUnsubscribe on live queries
Add a Trigger for BeforeUnsubscribe on live queries
Jul 11, 2021
New Feature / Enhancement Checklist
Current Limitation
Feature / Enhancement Description
Add a livrQuery trigger similar to BEFORE Subscribe, to get an event when a client unsubscribe from a LiveQuery.
Example Use Case
We need to fetch external data while we have users connected to LiveQuery, and stop fetching data when the client unsubscribe.
Usage example :
https://github.com/GoPlan-Finance/GoPlan-app/blob/master/backend/src/cloud/Assets/liveQueries/AssetPrice.ts#L217
Alternatives / Workarounds
None ;)
3rd Party References
The text was updated successfully, but these errors were encountered: