Is there a way to get beforeLoad to run on the client? I have tried enabling SPA mode - TanStack