Closed amarangganar closed 11 months ago
Someone is attempting to deploy a commit to a Personal Account owned by @mazipan on Vercel.
@mazipan first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
tanyaaja | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 17, 2023 2:46am |
Just a small comment about the copy
Changes updated @mazipan
Closes #86
Description
Applying optimistic update when marking question as done (following this pattern: https://tanstack.com/query/v4/docs/react/guides/optimistic-updates)
Current Tasks
useMarkQuestionAsDone
onMutate
after performing optimistic updatetoast
and loading state on button since it is now not necessary as we're applying optimistic updaterefetch
andonRefetch
props in favor ofqueryClient.invalidateQueries
dialog
manager and apply same confirm dialog design as #87 for styling consistency