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

Commit

Permalink
Merge pull request #82 from ably-labs/readme-ssr-note
Browse files Browse the repository at this point in the history
docs: document requirement for client side rendering
  • Loading branch information
owenpearson authored Aug 30, 2023
2 parents f507c3e + 8693955 commit 15b59ff
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 15b59ff

Please sign in to comment.