short
short copied to clipboard
[Feature] Add loading page component
What is the problem? When visiting a page whose availability is determined from the server state, there is a time lag before the response is shown to the user.
Your solution We can show an intermediate loading page to let users know that we have received the request and the server is validating the page access request.
Alternatives considered Currently, an empty page is shown. If having a loading page is found to add resource overhead, we can leave it as such.
Additional context When a user goes to an auth protected route, say admin panel, there is a network call made to determine if the page is accessible. I have added a 2 second delay in server to show the need for this in the following GIF.
I wonder why did it take so long to load. Is it purely network latency? We can use Chrome profile tool to find out what's exactly going on here.
Both loading animation and server side rendering sound good to me.
@byliuyang
Additional context
When a user goes to an auth protected route, say admin panel, there is a network call made to determine if the page is accessible. I have added a 2 second delay in server to show the need for this in the following GIF.
@rohithbalaji123 Oh! Sorry for missing that.
Interested in taking this!