Skip to content

docs: Add examples for packages like axios, vue-query#999

Merged
CodeDredd merged 1 commit into
mainfrom
docs-cookbook
Jul 20, 2026
Merged

docs: Add examples for packages like axios, vue-query#999
CodeDredd merged 1 commit into
mainfrom
docs-cookbook

Conversation

@CodeDredd

Copy link
Copy Markdown
Owner

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This PR should at working examples to stackblitz and codesandbox how to use pinia-orm right now with commonly used packages like axios or vue-query.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@BnitoBzh

Copy link
Copy Markdown

Hi !
When will this PR be merged?
I'm interested in the axios example.

@CodeDredd

Copy link
Copy Markdown
Owner Author

Refactored this to the current state of the project before merging: instead of the two full 2022 create-vue scaffolds under examples/ (which were mostly unmodified boilerplate and would have gone stale again immediately), the intent now lives as a Cookbook docs section with two maintained recipe pages:

  • Vue Query: pinia-orm + TanStack Query v5 (@tanstack/vue-query object API) with a QueryRepository based on the BaseRepository pattern from this PR — queries persist into the store, components read normalized relational data.
  • Axios: both the official @pinia-orm/axios plugin setup and the manual service-layer approach, using the v2 APIs (persistBy: 'fresh' etc.).

All examples use the 2.0.0 standard-decorator/model syntax.

@CodeDredd
CodeDredd merged commit 668c02a into main Jul 20, 2026
4 of 6 checks passed
@CodeDredd
CodeDredd deleted the docs-cookbook branch July 20, 2026 16:31
@github-actions github-actions Bot mentioned this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants