Weird pendingMs behavior #243
-
Hi everyone, loving react-location, I use it for its url-search-related features. I've prepared a sandbox with an example It is a simple application with 3 dynamically loaded routes:
I set these defaults in my router:
If I understand correctly react-location, this settings should tell the router to show the pending element after 1ms (so almost always) of waiting and show it for 100s, then show the route. But this behavior doesn't show, meaning that when I change a route, the outlet is blank for a split second (or more if I slow the network through devtools) and then it renders. Could you please explain what I am missing here? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like a bug. In this example: https://codesandbox.io/s/reverent-leakey-tyu99d?file=/src/App.tsx, the loader does trigger the pending state, but not the element. I'll look into this. |
Beta Was this translation helpful? Give feedback.
It looks like a bug. In this example: https://codesandbox.io/s/reverent-leakey-tyu99d?file=/src/App.tsx, the loader does trigger the pending state, but not the element. I'll look into this.