Skip to content

Commit

Permalink
fix async storeCache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Jun 29, 2023
1 parent 368c907 commit 734aee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/packages/sync-test/data/readClientStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export async function readClientStore(
[namespace, table, key]: Parameters<StoreCache["get"]>
): Promise<Record<string, unknown> | undefined> {
const selector = [namespace, table, serialize(key)];
const serializedValue = await page.evaluate((_selector) => {
const serializedValue = await page.evaluate(async (_selector) => {
const [_namespace, _table, _key] = _selector;
const result = window["storeCache"].get(_namespace, _table, deserialize(_key));
const result = await window["storeCache"].get(_namespace, _table, deserialize(_key));
return result ? serialize(result) : undefined;

/**
Expand Down

0 comments on commit 734aee2

Please sign in to comment.