-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progressive Rendering #95
Comments
Hi @brillout I've been trying out some examples using Here are my conclusions:
From the video Also, from the console's network tab, we can observe that something is preventing all assets from being fetched until the movies are fetched. I'm not sure what is causing this issue. (This also occurs even when using From the video
vike-solid-streaming-ssr-test-with-solid-query.mp4Using
That's all I have for now. I hope that helps. Please take a look, review it, and correct me where I'm wrong. |
Thank you phonzammi for the nice digging 💯 FYI there is some dependency injection going on between Vike and As for the double fetching issue, I guess the question here is whether it's a bug on Solid's side or on Solid Start's side? |
AFAIK, it doesn't. But, solidjs does have pageView = renderToStream(() => getPageElement(pageContext), {
onCompleteShell(info) {
info.write("<script></script>")
},
}).pipe; After doing more research, here is the sequence of how Vike + Solid streams when there is an async component (like in this test):
Due to As for the double-fetching issue, which is indeed a limitation on the SolidJS side (solidjs/solid#2217), let's hope that it can be resolved. |
Hi @brillout and @magne4000 I’ve updated a working example : vike-solid-streaming-ssr-example. Note about issue solidjs/solid#2217: My previous test with SolidJS (without Solid Query) used a different approach compared to using SolidJS with Solid Query. AFAIK, the issue is just with where we use the Please take a look and let me know if it’s good enough and if it’s the right approach. See also : solidjs/solid#2217 (comment) |
I've tried this example (including with solid-query) using Do you have any idea what changes could be causing this issue? |
I tried again by commenting out this line,
Update : Either remove
or
makes progressive rendering works in preview mode. |
That seems surprising? Is that a Solid bug or quirk? |
After further investigation and testing with the vike-solid-streaming-ssr-example/with-express using Express, including adding several dummy meta tags, I believe the issue lies with the Vite preview server. We encounter the same issue with Update : I also tried using @polka/compression with Express: phonzammi/vike-solid-streaming-ssr-example@ce75a06, and the result was the same as with the Vite preview server: it breaks Progressive Rendering. |
React 18 introduced Progressive Rendering. Does Solid support this?
It would be nice to potentially integrate it with Vike extensions (e.g. #94 and the upcoming
vike-{react,vue,solid}-telefunc
).The text was updated successfully, but these errors were encountered: