Skip to content

Commit

Permalink
fix: this.refetch check
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 12, 2024
1 parent 1ea7c6f commit e57f1b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/apollo/RobustTimeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default class RobustTimeout extends AbortableContext {
*/
doRefetch(variables) {
const now = Date.now()
if (now - this._lastUpdated < (this._pendingOp ? 5000 : 500)) {
if (
now - this._lastUpdated < (this._pendingOp ? 5000 : 500) ||
!this.refetch
) {
if (variables !== undefined) {
this._pendingVariables = variables
}
Expand Down

0 comments on commit e57f1b0

Please sign in to comment.