#Root route loader being called multiple times

4 messages · Page 1 of 1 (latest)

hearty kestrel
#

I am trying to call a function once on route load but it is being called multiple times. I tried both beforeLoad and loader but both have the same results. I do have two pathless layouts under the root route, which is why I think the loader is being called three times, but I am not sure. Any help would be appreciated.

rare charm
#

is this start or router related?

#

multiple loads could be caused by preloading

#

aside from that we need a complete minimal example stackblitz or git repo