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

Fix/is fetching #686

Merged
merged 6 commits into from
Nov 10, 2022
Merged

Fix/is fetching #686

merged 6 commits into from
Nov 10, 2022

Conversation

jycouet
Copy link
Contributor

@jycouet jycouet commented Nov 10, 2022

For Query, initial state is isFetching: true, then we call only setFetching(true) when there is a real network call ongoing.
Going back to isFetching: false will be part of the full store update. (to not be in situation where isFetching is false but we don't have data yet.

  • 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 Nov 10, 2022

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

Name Status Preview Updated
docs ✅ Ready (Inspect) Visit Preview Nov 10, 2022 at 9:45PM (UTC)
docs-next ✅ Ready (Inspect) Visit Preview Nov 10, 2022 at 9:45PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2022

🦋 Changeset detected

Latest commit: 298ce49

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

This PR includes changesets to release 3 packages
Name Type
houdini Patch
houdini-react Patch
houdini-svelte 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

@AlecAivazis AlecAivazis merged commit f138bff into main Nov 10, 2022
@AlecAivazis AlecAivazis deleted the fix/isFetching branch November 10, 2022 22:32
@github-actions github-actions bot mentioned this pull request Nov 10, 2022
endigma pushed a commit to endigma/houdini that referenced this pull request Nov 10, 2024
* ⚡ FIX: setConfig already done in BaseStore

* 🚸 IMPROVE: isFetching to happen only when a network call really happen.

* ✏️ DOC: changeset

* ✏️ DOC: changeset

* ✅ UPDATE: with tests

* track false fetching state when loading pages

Co-authored-by: Alec Aivazis <[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.

2 participants