Skip to content

Conversation

cseas
Copy link
Contributor

@cseas cseas commented Oct 4, 2020

There's a bit of a learning curve to react-query, especially when it comes to understanding the difference between queries and mutations and how to use react-query for a POST method.

I've added some explanation to the docs based on the discussion in #801

Currently, the algolia search for "post" leads to results from the "Invalidation from Mutations" document which might not exactly be relevant for someone just trying to make a basic POST call.

This change will hopefully make the "Queries" section show up in results for "post" too since a simple query might be ideal to use when the POST function isn't modifying server data. The docs currently don't mention clearly that queries can work fine for POST calls.

Please feel free to edit the words to a better-suited language if possible but it'd really be great if the docs explicitly mentioned that queries can be used with POST calls.

@vercel
Copy link

vercel bot commented Oct 4, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/ko08n62yf
✅ Preview: https://react-query-git-1c701cfb0a50e9560f781b91b9086d4cb495ed13.tannerlinsley.vercel.app

@tannerlinsley
Copy link
Collaborator

Please make this same PR to the next branch?

@cseas
Copy link
Contributor Author

cseas commented Oct 4, 2020

Same PR made on next branch. Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants