-
-
Notifications
You must be signed in to change notification settings - Fork 238
refactor(pinia-colada): migrate queries to defineQueryOptions
#2610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
🦋 Changeset detectedLatest commit: 3351637 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@brolnickij is attempting to deploy a commit to the Hey API Team on Vercel. A member of the Team first needs to authorize it. |
defineQueryOptions
defineQueryOptions
@brolnickij hold your horses on this one a bit, #2582 is almost ready and it contains some new concepts |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2610 +/- ##
==========================================
+ Coverage 23.81% 23.85% +0.04%
==========================================
Files 379 379
Lines 36945 36887 -58
Branches 1623 1623
==========================================
+ Hits 8798 8799 +1
+ Misses 28134 28075 -59
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
commit: |
@brolnickij merged my big thing, seems there are no conflicts and you just need to re-run the snapshots |
...napi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
...napi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/@pinia/colada.gen.ts
Fixed
Show fixed
Hide fixed
@brolnickij how did you find working with the latest on |
...pi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/asClass/@pinia/colada.gen.ts
Outdated
Show resolved
Hide resolved
...pi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/asClass/@pinia/colada.gen.ts
Outdated
Show resolved
Hide resolved
i didnt dive super deep, but its a solid upgrade! selectors over hard‑coded imports + idempotent generation = big win, i like it |
thanks! I was just curious since it's not even documented yet |
AI (used the right way) make life a bit easier xD |
P.S. issue #2619 is a complex, multi-layered problem, so it needs to be addressed in its own dedicated PR |
Thanks! Why did you remove the usage of |
oh, i removed it because i saw issues when using i need to think about how to handle this so that, despite the |
right now
|
after looking deeper into how we might even want to disallow using them together i post an update in #2619 once im confident in my analysis |
Interesting. I'd think we can fix the Nuxt client to remove whatever issues you've found? |
we need to look into it and see how complex it would be, but thats a separate discussion.. |
@brolnickij happy with this state of pull request or any more changes coming? |
@mrlubos im done, ready for review!) |
defineQueryOptions
factory for everyxxxQuery
_JSONValue
(so keys are consistent and type-safe)xxxQuery
- kept only the "canonical usage" examplesopenapi-ts-pinia-colada
body
/headers
Close #2597