-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error when unsubscribing from cache between fetch and render (#548)
* test to reproduce reported error * subscribing to the store should always subscribe to the cache * integration tests pass * changeset
- Loading branch information
1 parent
e02e524
commit cd00b5f
Showing
4 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'houdini': patch | ||
--- | ||
|
||
Fix bug when unsubscribing between load and render |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { graphql, load_TestMutationUpdateUsersList } from '$houdini'; | ||
import type { LoadEvent } from '@sveltejs/kit'; | ||
|
||
export async function load(event: LoadEvent) { | ||
return { | ||
...(await load_TestMutationUpdateUsersList({ event })) | ||
}; | ||
} | ||
|
||
graphql` | ||
query TestMutationUpdateUsersList { | ||
usersList(limit: 5, snapshot: "update-user-mutation") { | ||
id | ||
name | ||
...UserInfo | ||
} | ||
} | ||
`; |
This file contains 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
cd00b5f
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.
Successfully deployed to the following URLs:
docs-next – ./site
docs-next-kohl.vercel.app
docs-next-git-main-houdinigraphql.vercel.app
docs-next-houdinigraphql.vercel.app
cd00b5f
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.
Successfully deployed to the following URLs:
docs – ./site
docs-phi-fawn.vercel.app
docs-git-main-houdinigraphql.vercel.app
docs-houdinigraphql.vercel.app
houdinigraphql.com
www.houdinigraphql.com