Skip to content

useTableInserts

useTableInserts(table, callback, options?): object

Hook to subscribe to INSERT events on a table

ParameterType
tablestring
callback(payload) => void
options?Omit<UseRealtimeOptions, "channel" | "event" | "callback">

object

NameTypeDefault value
channelnull | RealtimeChannelchannelRef.current