-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Server Side Render] Delayed loading state of SSR component #35033
Conversation
Size Change: +78 B (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. I don't see a loading state when a server responds fast. I emulated a slow network via DevTools and component displays loading state.
Thanks for working on this, Nik!
Resolves: #35027
This PR shows the loading placeholder of SSR component with a delay of
1 second
.It still shows it if there is no previous response(such as when loading the post) and it also shows only the previous response (without the
spinner
) if the one second has not passed and there was a previous response obviously 😄 . This way we avoid theflickering
that used to exist before..Testing instructions
timeout
, you can change the timeout to something small (like 10) here