Skip to content

useTableSubscription

useTableSubscription(table, options?): object

Hook to subscribe to a table’s changes

ParameterTypeDescription
tablestringTable name (with optional schema, e.g., ‘public.products’)
options?Omit<UseRealtimeOptions, "channel">Subscription options

object

NameTypeDefault value
channelnull | RealtimeChannelchannelRef.current