From 5adf03c5f16849f383436c37e6721f3093fd283e Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Tue, 11 May 2021 16:09:16 +0300 Subject: [PATCH] added fetchPolicy no-cache on graph requests from subgraph.ts util --- src/utils/subgraph.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/subgraph.ts b/src/utils/subgraph.ts index 2c8998930..2cf0df0c2 100644 --- a/src/utils/subgraph.ts +++ b/src/utils/subgraph.ts @@ -75,7 +75,8 @@ async function fetchData( const client = getApolloClientInstance() const response = await client.query({ query: query, - variables: variables + variables: variables, + fetchPolicy: 'no-cache' }) return response } catch (error) { @@ -142,6 +143,7 @@ export async function getAssetPrices(assets: DDO[]): Promise { } export async function getPrice(asset: DDO): Promise { + console.log('get price', asset) const freVariables = { datatoken: asset?.dataToken.toLowerCase() }