aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/heartbeater_factory.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:39:36 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-10 03:39:36 +0800
commitcc8debe53b9a6efc75b91f1b6c47f0820c3beb8c (patch)
tree7f59b73ca8f436e94fcb872eced183b95c25e0b3 /packages/instant/src/util/heartbeater_factory.ts
parent36b8c9c5dd6cc650eaed8a2a6abd8f596c189fed (diff)
downloaddexon-0x-contracts-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.gz
dexon-0x-contracts-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.tar.zst
dexon-0x-contracts-cc8debe53b9a6efc75b91f1b6c47f0820c3beb8c.zip
Linting and renaming variables
Diffstat (limited to 'packages/instant/src/util/heartbeater_factory.ts')
-rw-r--r--packages/instant/src/util/heartbeater_factory.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/instant/src/util/heartbeater_factory.ts b/packages/instant/src/util/heartbeater_factory.ts
index 805483b71..96a8ac4e6 100644
--- a/packages/instant/src/util/heartbeater_factory.ts
+++ b/packages/instant/src/util/heartbeater_factory.ts
@@ -5,18 +5,18 @@ import { Heartbeater } from './heartbeater';
export interface HeartbeatFactoryOptions {
store: Store;
- performImmediatelyOnStart: boolean;
+ shouldPerformImmediatelyOnStart: boolean;
}
export const generateAccountHeartbeater = (options: HeartbeatFactoryOptions): Heartbeater => {
- const { store, performImmediatelyOnStart } = options;
+ const { store, shouldPerformImmediatelyOnStart } = options;
return new Heartbeater(async () => {
- await asyncData.fetchAccountInfoAndDispatchToStore({ store, setLoading: false });
- }, performImmediatelyOnStart);
+ await asyncData.fetchAccountInfoAndDispatchToStore({ store, shouldSetToLoading: false });
+ }, shouldPerformImmediatelyOnStart);
};
export const generateBuyQuoteHeartbeater = (options: HeartbeatFactoryOptions): Heartbeater => {
- const { store, performImmediatelyOnStart } = options;
+ const { store, shouldPerformImmediatelyOnStart } = options;
return new Heartbeater(async () => {
- await asyncData.fetchCurrentBuyQuoteAndDispatchToStore({ store, setPending: false });
- }, performImmediatelyOnStart);
+ await asyncData.fetchCurrentBuyQuoteAndDispatchToStore({ store, shouldSetPending: false });
+ }, shouldPerformImmediatelyOnStart);
};