Skip to content

Add a Trigger for BeforeUnsubscribe on live queries #7420

Open
@sadortun

Description

@sadortun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions