/login page (a login screen), I have a beforeLoad that checks for the auth state and automatically redirects to /app (the authenticated dashboard) if the user is already logged in according to Better Auth. However, when the page uses SSR the beforeLoad function doesnt seem to fire on the client at all. I can work around the issue by just setting ssr: false, but Id prefer to prerender or SSR this page since its pretty much static. Not sure if this is a bug? Im on router + start version 1.140.0/app routes should never pre-render or SSR and can just function like a client-side SPA. I think I can achieve this by simply setting ssr: false on the layout route within my (app) directory containing all the authenticated routes./ (the landing page), /about, and /pricing and I think it'd be safe to fully prerender these since the overall amount of these pages should stay pretty low in the long-term. Worst case scenario, they could use the same SSR + heavy caching strategy as the blogs/docs.prerender: options_here to the Start Vite plugin seems to work, but I've been unable to get the overall setup working as expected.https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago
TanStack AI Alpha 2 is here! 🖼️ Image, video, audio, speech, transcription, structured output 📦 Split adapters = smaller bundles, faster dev/contributions, easier 🎄 Fully tree shakable adapters ✨ Cleaner, flattened, fully type-safe APIs https://tanstack.com/blog/tanstack-ai-alpha-2
dry-scarlet · 3mo ago