Commit 5725903
authored
docs(playgrounds): prevent server-side execution of SSE query in Nuxt (#1516)
This PR fixes an issue in the Nuxt example that uses `useQuery` with
oRPC's SSE (`experimental_streamedOptions`).
Previously, the query would run during server-side rendering, leading to
hydration errors because SSE requires a persistent client-side
connection.
<img width="790" height="308" alt="image"
src="https://github.com/user-attachments/assets/bc1ddfe5-1ff7-4f73-9eda-b2b73527f95f"
/>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved handling of streamed data output to ensure it displays
correctly across all rendering scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 562f88f commit 5725903
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
0 commit comments