T
TanStack3y ago
metropolitan-bronze

Using derived stores in mutations

In svelte-query 5, it looks like using a derived store for CreateMutationOptions is supported based on the types and at runtime it works as expected. However, in TS land none of the generics seem to be working: https://codesandbox.io/p/sandbox/cocky-varahamihira-xdcnff?embed=1&file=%2Fsrc%2Flib%2Fmutations.ts%3A12%2C33 Is this a known issue or am I doing something wrong?
cocky-varahamihira-xdcnff
CodeSandbox is an online editor tailored for web applications.
No description
2 Replies

Did you find this page helpful?