TanStackT
TanStack8mo ago
4 replies
abstract-purple

Root route loader being called multiple times

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.
Was this page helpful?