()
| 3 | import { UserInfo } from '~/components/user-info' |
| 4 | |
| 5 | export default function Streamed() { |
| 6 | return ( |
| 7 | <main> |
| 8 | <Title>Solid Query - Streamed</Title> |
| 9 | |
| 10 | <h1>Solid Query - Streamed Example</h1> |
| 11 | |
| 12 | <div class="description"> |
| 13 | <p> |
| 14 | HTML is streamed from the server ASAP, reducing key metrics such as |
| 15 | TTFB and TTI. Suspended queries are streamed to the client when they |
| 16 | resolve on the server. This is represented in your devtools by the |
| 17 | green and blue chunks of the waterfall. |
| 18 | </p> |
| 19 | |
| 20 | <p> |
| 21 | Clients with javascript disabled will see the loading state for both |
| 22 | queries. (try turning off javascript and reloading this page) |
| 23 | </p> |
| 24 | |
| 25 | <img |
| 26 | class="description_img" |
| 27 | src="/imgs/streaming.png" |
| 28 | alt="devtools streaming request" |
| 29 | /> |
| 30 | </div> |
| 31 | |
| 32 | <UserInfo sleep={2500} /> |
| 33 | |
| 34 | <PostViewer sleep={300} /> |
| 35 | </main> |
| 36 | ) |
| 37 | } |
nothing calls this directly
no outgoing calls
no test coverage detected