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
Is your feature request related to a problem? Please describe.
I'm always frustrated when trying to use queries with isRealtime: true in services where the results are transformed into another array. The issue is that there is no trigger or callback for when onSnapshot updates occur, making it difficult to manage real-time data updates outside of a route.
Describe the solution you'd like
I would like to have a callback or trigger that fires whenever onSnapshot updates occur while using queries with isRealtime: true in services. This could be added to adapterOptions as an onUpdate callback, allowing us to handle real-time updates more effectively in different parts of the application, not just within a router.
adapterOptions: {
isRealtime: true,
onUpdate() {
// trigger when collection is updated
}
}
The text was updated successfully, but these errors were encountered:
AmilKey
changed the title
Title: Add onUpdate Callback to adapterOptions for Real-Time Data Updates
Add onUpdate Callback to adapterOptions for Real-Time Data Updates
Jul 25, 2024
Is your feature request related to a problem? Please describe.
I'm always frustrated when trying to use queries with isRealtime: true in services where the results are transformed into another array. The issue is that there is no trigger or callback for when onSnapshot updates occur, making it difficult to manage real-time data updates outside of a route.
Describe the solution you'd like
I would like to have a callback or trigger that fires whenever onSnapshot updates occur while using queries with isRealtime: true in services. This could be added to adapterOptions as an onUpdate callback, allowing us to handle real-time updates more effectively in different parts of the application, not just within a router.
The text was updated successfully, but these errors were encountered: