-
I've looked everywhere and I can't seem to find a good example of how to use React Query with POST, DELETE, and PUT requests. Is it because I just need to do a normal fetch without the use of React Query and then React Query detects a change and displays the fresh data? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
those are |
Beta Was this translation helpful? Give feedback.
-
@Dal-Tron, here is a simple example - https://github.com/gatinhap/plant-app-ver_0/blob/main/src/pages/removePlantPage/RemovePlant.tsx :) |
Beta Was this translation helpful? Give feedback.
those are
mutations
. Please see the docs on mutations as well as the mutation examples: https://react-query.tanstack.com/examples/optimistic-updates