Skip to content

Commit 32307b7

Browse files
committed
Invalidate query on press
1 parent a1ddbcc commit 32307b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/quotes/QuotePage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ function QuoteActions({
337337
onSuccess: (data) => {
338338
toast.success("Payment request has been created.")
339339
setPayRequestResponse(data)
340+
void queryClient.invalidateQueries({
341+
queryKey: ["bill_id", value.bill.id],
342+
})
340343
},
341344
})
342345

0 commit comments

Comments
 (0)