Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe committed Sep 12, 2023
1 parent 8053835 commit f51a34f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/postgrest/subscriptions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The cache helpers subscription hooks are simple `useEffect`-based hooks that man
## `useSubscription`

The `useSubscription` hook simply manages a realtime subscription. Upon retrieval of an update, it updates the cache with the retrieved data the same way the mutation hooks do. It exposes all params of the .on() method, including the callback, as well as the mutation options of the respective library. NOTE: Channel names must be unique when using multiple subscription hooks.

<Tabs items={['SWR', 'React Query']}>
<Tab>
```tsx
Expand Down

0 comments on commit f51a34f

Please sign in to comment.