Track upload progress for optimistic updates
The docs show how to use variables for optimistic updates
https://tanstack.com/query/latest/docs/framework/react/guides/optimistic-updates#if-the-mutation-and-the-query-dont-live-in-the-same-component
If my upload function has a callback to track progress like this
How can I use the callback to track the upload progress for my variables so I can show the UI with the progress?
2 Replies
wise-white•2y ago
you'd need to set it in state manually
variable-limeOP•2y ago
dang okey