examples/vue/simple
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
TanStack Vue Query Simple Example#
Fetches a single GitHub repository and shows its stats.
How it works#
src/services/repos/queries.tsdefinesreposQueries.detail(), aqueryOptionsfactory keyed by['repos', 'detail']that fetches theTanStack/queryrepository from the GitHub API.src/App.vuereads it withuseQuery(reposQueries.detail())and shows the repository's name, description and counts, with "Updating..." whileisFetchingistrue.src/main.tsinstallsVueQueryPluginon the app.
To run this example:
npm installnpm run dev