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?