TanStackT
TanStack10mo ago
2 replies
sacred-rose

Route `loader` function called on both client and server?

Hi! I'm coming from Remix and SolidJS where data loading functions are limited to run on the server. In working with ts router, I'm seeing console.log output from the loader function on both the client (browser console) and the server (terminal). This is surprising - I'd expect to see it only on the server.
Was this page helpful?