Title: useQuery (with refetch) or useMutation for hitting a validation api? · TanStack/query · Discussion #7627 · GitHub
Open Graph Title: useQuery (with refetch) or useMutation for hitting a validation api? · TanStack/query · Discussion #7627
X Title: useQuery (with refetch) or useMutation for hitting a validation api? · TanStack/query · Discussion #7627
Description: useQuery (with refetch) or useMutation for hitting a validation api?
Open Graph Description: Hello, I have a form input which takes a license key and a button which fires a POST request to validate the key. This is all contained within one react component. This API simple sends the key to ...
X Description: Hello, I have a form input which takes a license key and a button which fires a POST request to validate the key. This is all contained within one react component. This API simple sends the key to ...
Opengraph URL: https://github.com/TanStack/query/discussions/7627
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/discussions/:number(.:format) |
| route-controller | discussions |
| route-action | show |
| fetch-nonce | v2:c2cdb390-2804-c7e5-9276-e58e1f501139 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | E784:1CFB2B:2EF6D91:3ED8DEA:6992F16B |
| html-safe-nonce | 2c252ad1a94b5245a61dd8a7d35abeec22238c961806a624c1852e3d9c119147 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzg0OjFDRkIyQjoyRUY2RDkxOjNFRDhERUE6Njk5MkYxNkIiLCJ2aXNpdG9yX2lkIjoiMzAxODkzMjk5OTQ2MDk0MjE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 483ffaa26a051f95a86f6558e6a0157fc658b16793ebd75805c530c864d65799 |
| hovercard-subject-tag | discussion:6865213 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/TanStack/query/discussions/7627 |
| twitter:image | https://opengraph.githubassets.com/e930232554c4f05fca008462db22dad0ddad27c0b3e87a1b35c174b39b62d8f2/TanStack/query/discussions/7627 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e930232554c4f05fca008462db22dad0ddad27c0b3e87a1b35c174b39b62d8f2/TanStack/query/discussions/7627 |
| og:image:alt | Hello, I have a form input which takes a license key and a button which fires a POST request to validate the key. This is all contained within one react component. This API simple sends the key to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01ab16879a3159e6f0717ab948b9b562e162a6aafd1f4393b786b07b747df244 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/query git https://github.com/TanStack/query.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 207645083 |
| octolytics-dimension-repository_nwo | TanStack/query |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 207645083 |
| octolytics-dimension-repository_network_root_nwo | TanStack/query |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b1570f3928bef80fa5fc7890ce0942e9b696ad9d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width