T
TanStack4w ago
rival-black

createStartHandler — breaking change in RC?

Hi! It looked like the signature of createStartHandler was changed in the RC released. Previously it was
export function createStartHandler<TRouter extends AnyRouter>({
createRouter,
}: {
createRouter: () => Awaitable<TRouter>
}): CustomizeStartHandler<TRouter> {
export function createStartHandler<TRouter extends AnyRouter>({
createRouter,
}: {
createRouter: () => Awaitable<TRouter>
}): CustomizeStartHandler<TRouter> {
Now it is
export function createStartHandler<TRegister = Register>(
cb: HandlerCallback<AnyRouter>,
): RequestHandler<TRegister> {
export function createStartHandler<TRegister = Register>(
cb: HandlerCallback<AnyRouter>,
): RequestHandler<TRegister> {
I think the change is missing from the RC migration guide (cc @Manuel Schiller). The context of my issue is that I’m trying to migrate an app that uses Clerk (https://clerk.com/docs/quickstarts/tanstack-react-start#add-create-clerk-handler) and I need createStartHandler to create the Clerk handler. What am I supposed to use instead? createStartHandler(getRouter) doesn’t typecheck
TanStack React Start: TanStack React Start Quickstart (beta)
Learn how to use Clerk to quickly and easily add secure authentication and user management to your TanStack React Start application.
4 Replies
conscious-sapphire
conscious-sapphire4w ago
clerk needs some update they are aware and working on it
rival-black
rival-blackOP4w ago
Thanks!
deep-jade
deep-jade3w ago
@Manuel Schiller Sorry for the ping but do we have migration notes for the RC upgrade?
exotic-emerald
exotic-emerald3w ago
GitHub
Start BETA - Tracking · TanStack router · Discussion #2863
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

Did you find this page helpful?