useTableInserts
useTableInserts(
table,callback,options?):object
Hook to subscribe to INSERT events on a table
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
table |
string |
callback |
(payload) => void |
options? |
Omit<UseRealtimeOptions, "channel" | "event" | "callback"> |
Returns
Section titled “Returns”object
| Name | Type | Default value |
|---|---|---|
channel |
RealtimeChannel | null |
channelRef.current |