Skip to content

The loader prevents application rendering and displays a blank screen #10680

Closed Answered by hungtcs
hungtcs asked this question in Q&A
Discussion options

You must be logged in to vote

@Toshinaki

Sorry I forgot to fill in the reply.

After some testing, I found that only the fallbackElement property of RouterProvider works, which can be used to display a full-screen loading state.

I also tested the v7_startTransition flag, but it didn't work as I thought.

https://codesandbox.io/s/priceless-hofstadter-jnnlsw?file=/src/index.tsx

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Toshinaki
Comment options

Answer selected by hungtcs
Comment options

You must be logged in to vote
2 replies
@hungtcs
Comment options

@loia5tqd001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants