Handling rerendering and useMutation
Hi all, currently when wanting to force a rerender on a mutation I move the mutation up in state and pass it as a callback down to the component that needs to trigger it. This often results in prop drilling and coupled state. What is a better approach?
Simplified example:
The
Using version
Simplified example:
The
useAddMessage hook inserts the message into the cache of an InfiniteQuery using setQueryDataUsing version
4.24.6