Skip to content

Commit dbc2826

Browse files
authored
Merge pull request #76 from kleros/fix/urql-cache-stale-data
Fix: Set urql client requestPolicy to network-only to prevent stale data
2 parents 0f3ee17 + 0bf4604 commit dbc2826

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/api/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const getClient = (endpoint: string) => {
99
client = new Client({
1010
url: endpoint,
1111
exchanges: [cacheExchange, fetchExchange],
12+
requestPolicy: "network-only",
1213
});
1314
clients.set(endpoint, client);
1415
}

0 commit comments

Comments
 (0)