How to access the router instance inside createMiddleware({ type: "function" }).client()? - TanStack