Invalidate query not working
I'd like to invalidate my query but it doesn't seem to be working so I'm thinking I'll pass refetch as a prop and just retrigger the query.
This is what my query looks like in one component:
This is what I'm doing to invalidate it in another component. But the page is not re-rendering with new data.
I've tried removing the query options like enabled, refetchOnWindowFocus, etc but it still doesn't work.
Maybe I am doing something dumb.
If I need to pass refetch as a prop, I'm seeing this as the type upon hovering over refetch.
Not sure what the <unknown> is about or what TRPCClientErrorLike is expecting.
Fguring out this type does not sound fun.
0 Replies