Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
src/pages/docs/ai-transport/token-streaming/message-per-token.mdx
Outdated
Show resolved
Hide resolved
src/pages/docs/ai-transport/token-streaming/message-per-response.mdx
Outdated
Show resolved
Hide resolved
d879231 to
4259e13
Compare
4259e13 to
1170435
Compare
| const hydrated = useRef(false); | ||
|
|
||
| // Subscribe to live messages and get the history function | ||
| const { history } = useChannel('persisted:{{RANDOM_CHANNEL_NAME}}', 'token', (message) => { |
There was a problem hiding this comment.
Also, just noticed, the js/python/java examples for persisted history include // Use a channel in a namespace called 'persisted', which has persistence enabled to emphasize the expected channel configuration.
Maybe add a similar comment for react examples too:
// Ensure the outer ChannelProvider uses a channel in a 'persisted' namespace, which has persistence enabled
| const hydrated = useRef(false); | ||
|
|
||
| // Subscribe to live messages and get the history function | ||
| const { history } = useChannel('persisted:{{RANDOM_CHANNEL_NAME}}', 'token', (message) => { |
1170435 to
0c10eea
Compare
0c10eea to
c0b3211
Compare
AIT-253