-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Conversation
|
🦋 Changeset detectedLatest commit: a3b29a9 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2610 +/- ##
==========================================
+ Coverage 26.25% 26.41% +0.15%
==========================================
Files 386 387 +1
Lines 37363 37484 +121
Branches 1864 1907 +43
==========================================
+ Hits 9811 9901 +90
- Misses 27539 27570 +31
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
@mrlubos whenever you got a moment, could you take a look at my fix? P.S. CI is still red even though everything passes locally (looks like the new snapshot didnt stick on the runner) |
@brolnickij can you try |
@mrlubos hmm, i checked, and all the changes were already pushed there are no unstaged or unpushed snapshots left in the local repository |
I can have a look later! |
u were right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, only a few minor asks!
@@ -22,6 +22,7 @@ export const createQueryKeyFunction = ({ | |||
}: { | |||
plugin: PiniaColadaPlugin['Instance']; | |||
}) => { | |||
const coreModule = '../core/queryKeySerializer.gen'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brolnickij This is the only thing I don't feel good about. Can you re-export serializeQueryKeyValue
from the client and import it from the client the same way we import elsewhere?
...pi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/asClass/@pinia/colada.gen.ts
Outdated
Show resolved
Hide resolved
…rializeQueryKeyValue` symbol
The latest updates on your projects. Learn more about Vercel for GitHub.
|
defineQueryOptions
factory for everyxxxQuery
_JSONValue
(so keys are consistent and type-safe)xxxQuery
- kept only the "canonical usage" examplesopenapi-ts-pinia-colada
serializeQueryKeyValue
instead of embedding rawbody
/query
Close #2597