You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Figure out why it is nessesary to use select avoiding getting the assignedAt field Types of property assignedAt are incompatible.
Type is Date not assignable to type string
Might be to a trpc bug with inconsistent types between Awaited< ReturnType<(typeof serverClient)['recipe']['getPublicRecipe']> and const recipe = trpc.recipe.getPublicRecipe.useQuery(
{ id },
{
initialData: initialRecipe,
refetchOnMount: false,
refetchOnReconnect: false,
}
);
In recipeView.tsx:
Andreasgdp
changed the title
Why is select needed on ingredient parts for getting recipe
Spike: Why is select needed on ingredient parts for getting recipe
Jul 27, 2024
Figure out why it is nessesary to use select avoiding getting the assignedAt field Types of property assignedAt are incompatible.
Type is Date not assignable to type string
MomentMeal/src/trpc/recipe/recipeRouter.ts
Lines 163 to 167 in f59feaf
Might be to a trpc bug with inconsistent types between
Awaited< ReturnType<(typeof serverClient)['recipe']['getPublicRecipe']>
and const recipe = trpc.recipe.getPublicRecipe.useQuery({ id },
{
initialData: initialRecipe,
refetchOnMount: false,
refetchOnReconnect: false,
}
);
In recipeView.tsx:
MomentMeal/src/components/recipeView.tsx
Lines 36 to 43 in f59feaf
The text was updated successfully, but these errors were encountered: