1- /* eslint-disable react/prefer-stateless-function */
2-
31import React , { useState , useEffect , useRef , useCallback } from 'react'
42import { Meteor } from 'meteor/meteor'
53import { Mongo } from 'meteor/mongo'
@@ -10,7 +8,7 @@ import { meteorSubscribe } from '../meteorApi.js'
108import { stringifyObjects } from '../tempLib.js'
119import _ from 'underscore'
1210
13- const globalTrackerQueue : Array < Function > = [ ]
11+ const globalTrackerQueue : Array < ( ) => void > = [ ]
1412let globalTrackerTimestamp : number | undefined = undefined
1513let globalTrackerTimeout : number | undefined = undefined
1614
@@ -91,7 +89,7 @@ class MeteorDataManager {
9189 globalTrackerQueue . length = 0
9290 }
9391
94- static enqueueUpdate ( func : Function ) {
92+ static enqueueUpdate ( func : ( ) => void ) {
9593 if ( globalTrackerTimeout !== undefined ) {
9694 clearTimeout ( globalTrackerTimeout )
9795 globalTrackerTimeout = undefined
@@ -310,7 +308,6 @@ export function translateWithTracker<IProps, IState, TrackedProps>(
310308 checkUpdate ?: ( data : any , props : IProps , nextProps : IProps , state ?: IState , nextState ?: IState ) => boolean ,
311309 queueTrackerUpdates ?: boolean
312310) : ( component : React . ComponentType < Translated < IProps & TrackedProps > > ) => React . ComponentType < IProps > {
313- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
314311 return ( WrappedComponent ) => {
315312 const inner : React . ComponentType < Translated < IProps > > = withTracker < Translated < IProps > , IState , TrackedProps > (
316313 autorunFunction ,
0 commit comments