TanStackT
TanStack10mo ago
19 replies
recent-teal

Migrating Auth0 & React-Router to Tanstack Start or Tanstack React-Router

I'm trying to work through how I can migrate to Tanstack Start but ran into a couple of issues for our Web App.

Background:
- WebApp written in TypeScript using React-Router (the remix one)
- Built using vite and a static index.html
- Many libs built custom and used internally are NOT isomorphic => i.e. window.localStorage
- Auth0 JS lib doesn't support SSR and I don't want to migrate to Clerk/PropelAuth atm (in future I will)

Issues:

1. How to handle client-only libraries i.e. Auth0 JS

Ideas:
1. Do I even need SSR => should I just use react-router? (FYI I REALLY want the start functions... but I can bypass in short term)
2. Could I just wrap the <Outlet> with a isClient check and not render (I feel like this will throw hydration error)

Any help or guidance is much appreciated. We already migrated our marketing site https://joggr.io and ❤️ it!
Documentation platform for developers that keeps your documentation up to date.
Documentation for developers · Joggr
Was this page helpful?