PH
Paul He

TanstackFaster

I just rewrote NextFaster to TanstackFaster

0 min read
TanstackNext

I just rewrote NextFaster to TanstackFaster.

  • The APIs of Tanstack router are incredibly for typegasms. You get incredible type inference the old nextjs-pages-router only can dream of. (Thinking of InferGetServerSideProps<typeof T>).
  • Client/Server Context is (at first) more intuitive to understand in Tanstack.
  • Tanstack Start does not rely on "use cache", "use server", "use client" but you can still "use" what these directives offer (with normal functions)
  • The project already costs me a few Euros (Vercel Free Tier already hit).
  • I could obviously not recreate the whole landscape of Next.js + Vercel caching mechanisms. Also I could not get the serverFns to actually send the Cache-Control Headers on the Vercel Deployment.

Tanner himself just liked my Tweet!