UseQuery Parameters in Typescript
Good Afternoon, does anyone know if there is an updated example for a Optimistic RQ Usage? The one in the docs look to be broken due to the older version: https://codesandbox.io/s/github/tannerlinsley/react-query/tree/v3/examples/optimistic-updates-typescript
I was getting an issue on my side with the updated version specific to the queryKey equaling 'roles'. I changed that value to ['roles'], then the error went back to the one in codesandbox link with the options.
CodeSandbox
optimistic-updates-typescript - CodeSandbox
optimistic-updates-typescript using @types/node, @types/react, axios, isomorphic-unfetch, next, react, react-dom, react-query, typescript
0 Replies