mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-19 17:27:26 +02:00
♻️ Remove explicit invalidate calls (#1445)
This commit is contained in:
parent
4b3376536e
commit
a34aa8c465
14 changed files with 16 additions and 46 deletions
|
@ -212,12 +212,7 @@ export const FinalizePollForm = ({
|
|||
|
||||
export function FinalizePollDialog(props: DialogProps) {
|
||||
const poll = usePoll();
|
||||
const queryClient = trpc.useUtils();
|
||||
const scheduleEvent = trpc.polls.book.useMutation({
|
||||
onSuccess: () => {
|
||||
queryClient.invalidate();
|
||||
},
|
||||
});
|
||||
const scheduleEvent = trpc.polls.book.useMutation();
|
||||
return (
|
||||
<Dialog {...props}>
|
||||
<DialogContent size="2xl">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue