Skip to content

Commit

Permalink
🚧 UPDATE: store
Browse files Browse the repository at this point in the history
  • Loading branch information
jycouet committed Jan 22, 2023
1 parent 4372049 commit ae1b2f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/sveltekit/src/routes/stale/add/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
const markStale_type_field = async () => {
await addUser.mutate(null);
cache.markStale('UserNodes', 'totalCount');
cache.markStale('UserNodes', { field: 'totalCount' });
};
const markStale_subtype = async () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/houdini/src/runtime/client/documentStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ test('throw hooks can resolve the plugin instead', async function () {
throw error
},
})

const middleware2: ClientPlugin = () => ({
catch(ctx, { resolve }) {
resolve(ctx, {
Expand Down Expand Up @@ -1115,15 +1115,15 @@ test('throw hooks can resolve the plugin instead', async function () {
})

test('throw hooks can replay the plugin instead', async function () {
const data = {
const data: QueryResult<GraphQLObject, Record<string, any>> = {
data: { hello: 'world' },
errors: [],
fetching: true,
partial: false,
stale: false,
source: DataSource.Cache,
variables: null,
} satisfies QueryResult<GraphQLObject, Record<string, any>>
}
const fn = vi.fn()

// we'll track a count so that we throw in some situations and resolve in others
Expand Down

0 comments on commit ae1b2f5

Please sign in to comment.