Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
docs: document requirement for client side rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Aug 29, 2023
1 parent c589f46 commit 8693955
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const { channel } = useChannel("your-channel-name", (message) => {

Every time a message is sent to `your-channel-name` it'll be logged to the console. You can do whatever you need to with those messages.

Our react hooks are designed to run on the client-side, so if you are using server-side rendering, make sure that your components which use Ably react hooks are only rendered on the client side.

---

### useChannel
Expand Down

0 comments on commit 8693955

Please sign in to comment.