aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/heartbeater_factory.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-16 06:20:19 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-16 06:20:19 +0800
commit447b0f91f9bdc200d14897be94796873c95490c7 (patch)
tree6bc38643a1d14437c0f56fe91048d5716064f801 /packages/instant/src/util/heartbeater_factory.ts
parent34d86647bfc56dbf8221b08b3d7bdeba08f46ca1 (diff)
downloaddexon-sol-tools-447b0f91f9bdc200d14897be94796873c95490c7.tar.gz
dexon-sol-tools-447b0f91f9bdc200d14897be94796873c95490c7.tar.zst
dexon-sol-tools-447b0f91f9bdc200d14897be94796873c95490c7.zip
Have heartbeat update not trigger errors
Diffstat (limited to 'packages/instant/src/util/heartbeater_factory.ts')
-rw-r--r--packages/instant/src/util/heartbeater_factory.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/util/heartbeater_factory.ts b/packages/instant/src/util/heartbeater_factory.ts
index 06fcdb8bb..2b852fb0d 100644
--- a/packages/instant/src/util/heartbeater_factory.ts
+++ b/packages/instant/src/util/heartbeater_factory.ts
@@ -17,6 +17,8 @@ export const generateAccountHeartbeater = (options: HeartbeatFactoryOptions): He
export const generateBuyQuoteHeartbeater = (options: HeartbeatFactoryOptions): Heartbeater => {
const { store, shouldPerformImmediatelyOnStart } = options;
return new Heartbeater(async () => {
- await asyncData.fetchCurrentBuyQuoteAndDispatchToStore(store.getState(), store.dispatch, false);
+ await asyncData.fetchCurrentBuyQuoteAndDispatchToStore(store.getState(), store.dispatch, {
+ updateSilently: true,
+ });
}, shouldPerformImmediatelyOnStart);
};