Skip to content

useTableSubscription

useTableSubscription(table, options?): object

Hook to subscribe to a table’s changes

Parameter Type Description
table string Table name (with optional schema, e.g., ‘public.products’)
options? Omit<UseRealtimeOptions, "channel"> Subscription options

object

Name Type Default value
channel RealtimeChannel | null channelRef.current