TanStackT
TanStack2y ago
24 replies
urgent-maroon

Problems with beforeLoad() and load()

Hello guys, im making my app with react, vite and tanstackrouter, and ive been doing great since i faced this problem from couple weeks whiout a progress and wondering if someone can give me a hand. The problem its releated with how the app its handling the auth of the user, im trying to protect the routes with beforeLoad() but its been ignoring by load() and its rendering first the data. Im trying all the ways to fix it but nothing fix it. If somebody can give me an advice that will be helpful thanks
Screenshot_2024-08-23_at_12.02.27_PM.png
Screenshot_2024-08-23_at_11.59.57_AM.png
Screenshot_2024-08-23_at_11.59.32_AM.png
Screenshot_2024-08-23_at_11.59.22_AM.png
Screenshot_2024-08-23_at_11.58.37_AM.png
Was this page helpful?