Skip to content
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

type definitions for loadAll #659

Merged
merged 5 commits into from
Oct 31, 2022
Merged

type definitions for loadAll #659

merged 5 commits into from
Oct 31, 2022

Conversation

AlecAivazis
Copy link
Collaborator

@AlecAivazis AlecAivazis commented Oct 29, 2022

Fixes #658

This PR contains more magic than all of pretty much all of houdini combined....

To help everyone out, please make sure your PR does the following:

  • Update the first line to point to the ticket that this PR fixes
  • Add a message that clearly describes the fix
  • If applicable, add a test that would fail without this fix
  • Make sure the unit and integration tests pass locally with pnpm run tests and cd integration && pnpm run tests
  • Includes a changeset if your fix affects the user with pnpm changeset

@vercel
Copy link

vercel bot commented Oct 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
docs ✅ Ready (Inspect) Visit Preview Oct 31, 2022 at 0:08AM (UTC)
docs-next ✅ Ready (Inspect) Visit Preview Oct 31, 2022 at 0:08AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2022

🦋 Changeset detected

Latest commit: 398b04d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
houdini-svelte Patch
houdini Patch

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

@@ -8,6 +8,29 @@ export * from './session'
type LoadResult = Promise<{ [key: string]: QueryStore<any, {}> }>
type LoadAllInput = LoadResult | Record<string, LoadResult>

// gets all the values from an object
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@revnelson Do you mind adding this block to the loadAll definition in your generated runtime and confirming if it fixes the issue? It seems to work for me but It'd be nice for someone to confirm it

@AlecAivazis AlecAivazis merged commit 579fb0b into main Oct 31, 2022
@AlecAivazis AlecAivazis deleted the load-all-types branch October 31, 2022 00:35
@github-actions github-actions bot mentioned this pull request Oct 31, 2022
endigma pushed a commit to endigma/houdini that referenced this pull request Nov 10, 2024
* type definitions for loadAll

* changeset

* ✅ NEW: test for types

* 🐛 FIX: TZ for tests

* 🐛 FIX: pnpm (mb)

Co-authored-by: jycouet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type error when using loadAll function.
2 participants