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

docs: document requirement for client side rendering #82

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading