Returning data from Tanstack Query useMutation wrapper
Maybe i'm missing something but is it not possible to return data returned from the convex tanstack query mutation wrapper?
2 Replies
Is the data not coming through, or is it working but the types are bad?
looks like the types just not totally correct. data is unknown here
onSuccess: (data) => {
console.log('🚀 ~ file: create-deal-form.tsx:35 ~ onSuccess: ~ data:', data)
toast.success('Deal created successfully')
router.invalidate()
},