-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
SSR causes a flicker while hydrating. #947
Comments
Do you have a repo or a codesandbox where the issue is reproducible? We did consider this a lot during development and that's how our specialized cc @prateekbh |
Moving the issue over to the cli repo as according to the video |
@marvinhagemeister issue definitely belongs here. But the fix belongs here preactjs/preact#2214 |
@marvinhagemeister this is default code of preact-cli with Lorem Ipsum text. I haven't touched anything else... I wasn't expecting SSR at all but its enabled in production build with default settings.
|
@abhishekdgeek yes. This is the last known issue before we go stable with v3 |
One more question, the SSR will only for homepage? I tried doing it locally. src/prerender-urls.json
I am getting inside body tag. Refer to output below:
|
Thus definitely seems like a bug. What version of Preact CLI are you at? |
PFA the package.json content -
|
preact-cli 2.2.1 |
Can you paste the output of Getting If possible, it would be super useful to see a repo with your code in it. Specifically, I'd be looking at the contents of |
Well, hydration with preact 10 on cli 2 definitely doesn't work properly, prerendering should? |
Hi Team,
Not sure if this was covered in SSR's scope during development, I can see a flicker in page when on slow network.
HTML gets loaded and I get a page.
JS is being loaded and white screen appears.
JS is loaded and view is painted.
Problem:
Please refer to following video/gif - https://photos.app.goo.gl/KnH4WnemFo2TTiZW6
The text was updated successfully, but these errors were encountered: