#Pending component for layout routes

1 messages · Page 1 of 1 (latest)

bitter stream
#

How does setting a pending component on a layout route work? If I have a loader in the layout route and loaders in the child routes, will it display the pending component until all loaders finish or just the layout loaders?

smoky cedar
#

you could try it out 😀

bitter stream
#

😅 I did but was getting some confusing results. Just wanted to get some clarification on how it works.

I have a pending component on the layout component which is just a simple spinner and no pending components on the child routes.

- layout with pending component
  - index
  - other routes

all routes have loaders

The spinner seems to be displaying for the child routes while they're loading but seems to be unmounting and mounting again which causes a reset of the animation. Any ideas why that's happening?