TanStackT
TanStack2mo ago
6 replies
worthy-azure

Incomplete upgrade guide for Tanstack v132

I've been using tanstack for over 6 months and we've built project with around 500K LoC over it.

It has been great so far but the v132 upgrade completely changed our opinion
- Due to the size of our codebase, manual change is pretty much impossible, we create our own codemod for it
- Even with codemod there's a lot of undocumented change

Reflecting to this discussion
https://github.com/TanStack/router/discussions/2863#discussioncomment-14052148

There's not even a mention that usage of middleware must also be moved
const loggingMiddleware = createMiddleware().server(() => {
  //...
})

export const Route = createFileRoute('/foo')({
  server: {
    handlers: ({ createHandlers }) =>
      createHandlers({
        GET: {
          middleware: [loggingMiddleware],
          handler: () => {
            //...
          },
        },
      }),
  },
})


Is there any plan on improving this before the stable release?
GitHub
Tracking any important changes for TanStack Start during the BETA period. If you are coming from the ALPHA of TanStack Start, you can see all the breaking changes that were made here - #2403
Start BETA - Tracking · TanStack router · Discussion #2863
Was this page helpful?