This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-react / RealtimeSyncOptions

RealtimeSyncOptions ​

Options of useRealtimeSync.

Properties ​

topics? ​

optional topics?: RealtimeSyncTopic[]

Extra topics (e.g. from products) with the explicit mapping to the queries they feed. Each message and each onResync of the topic invalidates exactly the keys in invalidate. The hook does not apply the message content to the cache: for that (or any other reaction) use useRealtime. Private topics are only subscribed with a user in the session.