session refresh queries - #1723
Merged
Merged
Conversation
when houdini session is changed because of external refactors, we already page.data for setting client session but now we also deep compare the old _houdini__session_ with latest one, if it has changes we willl refresh all the queries with new session
🦋 Changeset detectedLatest commit: 73cc67f The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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
requested changes
Jul 10, 2026
AlecAivazis
requested changes
Jul 14, 2026
| } | ||
| | { | ||
| kind: 'refetch' | ||
| session?: App.Session | null |
Collaborator
There was a problem hiding this comment.
we should also add metadata and the other extra args from the fetch functino
AlecAivazis
requested changes
Jul 14, 2026
AlecAivazis
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1225
Changes in houdini session will trigger all queries to refetch. When
__houdini_session__is changed because of external factors or anyhow, we already watch page.data for setting client session but now we also deep compare the old_houdini__session_with latest one,if it has changes we will refresh all the queries with new sessionThe cache refetch message can now carry a session value. Query refetches use that value when present instead of falling back to the query's last session, which prevents session-change refreshes from refetching with
To help everyone out, please make sure your PR does the following:
pnpm run testsandcd integration && pnpm run testspnpm changeset