Dani;
v10 migration using codemod
So I've been looking at the codemod that helps with transition towards v10 and I haven't been able to get it to work, my setup (simplified):
Running the following command while in
/server/trpc/
So after running this, every file in the project is printed to the console i.e. migrated ...../server/trpc/src/routers/auth.router.ts
, however, the only files that are changed are the test files (the ones using .createCaller()
), those are migrated correctly.
Not sure what is wrong, maybe I'm overlooking something. Any help is greatly appreciated.1 replies
data becomes never[] when destructuring with a fallback value
Currently it doesn't seem possible to set a fallback value on a destructured
data
property, for example:
The "equivalent" with pure react-query:
Does anyone know if there's a way to achieve the same behaviour of react-query
in @trpc/react
?18 replies