diff options
author | 2024-03-10 07:53:26 +0530 | |
---|---|---|
committer | 2024-03-10 07:53:26 +0530 | |
commit | f1f025639db0b891be7649b95a787af990df27ed (patch) | |
tree | 7f67f557efb5c64330754e13da4ccc5f01e4d331 /src/stores/lib/Request.ts | |
parent | New public release: 6.7.0 (diff) | |
parent | 6.7.1-nightly.28 [skip ci] (diff) | |
download | ferdium-app-f1f025639db0b891be7649b95a787af990df27ed.tar.gz ferdium-app-f1f025639db0b891be7649b95a787af990df27ed.tar.zst ferdium-app-f1f025639db0b891be7649b95a787af990df27ed.zip |
Merge branch 'develop' into release; Bump to 6.7.1v6.7.1
Diffstat (limited to 'src/stores/lib/Request.ts')
-rw-r--r-- | src/stores/lib/Request.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/stores/lib/Request.ts b/src/stores/lib/Request.ts index 911c5ccfb..587af87d7 100644 --- a/src/stores/lib/Request.ts +++ b/src/stores/lib/Request.ts | |||
@@ -1,5 +1,4 @@ | |||
1 | import { observable, action, computed, makeObservable } from 'mobx'; | 1 | import { observable, action, computed, makeObservable } from 'mobx'; |
2 | import { isEqual } from 'lodash/fp'; | ||
3 | 2 | ||
4 | // eslint-disable-next-line no-use-before-define | 3 | // eslint-disable-next-line no-use-before-define |
5 | type Hook = (request: Request) => void; | 4 | type Hook = (request: Request) => void; |
@@ -123,14 +122,6 @@ export default class Request { | |||
123 | return this.execute(...args); | 122 | return this.execute(...args); |
124 | } | 123 | } |
125 | 124 | ||
126 | isExecutingWithArgs(...args: any[]): boolean { | ||
127 | return ( | ||
128 | this.isExecuting && | ||
129 | this.currentApiCall && | ||
130 | isEqual(this.currentApiCall.args, args) | ||
131 | ); | ||
132 | } | ||
133 | |||
134 | @computed get isExecutingFirstTime(): boolean { | 125 | @computed get isExecutingFirstTime(): boolean { |
135 | return !this.wasExecuted && this.isExecuting; | 126 | return !this.wasExecuted && this.isExecuting; |
136 | } | 127 | } |