Skip to content

useTableInserts

useTableInserts(table, callback, options?): object

Hook to subscribe to INSERT events on a table

Parameter Type
table string
callback (payload) => void
options? Omit<UseRealtimeOptions, "channel" | "event" | "callback">

object

Name Type Default value
channel RealtimeChannel | null channelRef.current