TanStackT
TanStack3y ago
2 replies
constitutional-coral

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?
Screen_Shot_2023-08-01_at_11.41.58_PM.png
CodeSandbox is an online editor tailored for web applications.
cocky-varahamihira-xdcnff
Was this page helpful?