vishalbalaji / trpc-svelte-query-adapter

A simple adapter to use `@tanstack/svelte-query` with trpc, similar to `@trpc/react-query`.
71 stars 6 forks source link

Variables/Data are not send on mutations #4

Closed sharmapukar217 closed 1 year ago

sharmapukar217 commented 1 year ago

Seems like the variables are not sent while using useMutation(), I am not sure if those are send on useQuery() or not but for useMutation(), no data is sent back to server

vishalbalaji commented 1 year ago

Hi, could you please provide your router and how you were calling the method so that I can try and recreate it?

vishalbalaji commented 1 year ago

I noticed that I was not actually passing the input to the useMutation().mutate function to the trpc mutation. Please check if v1.0.9 fixes it and let me know.