We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4239ff + 4340144 commit 2dc4ac2Copy full SHA for 2dc4ac2
src/Tree.tsx
@@ -286,7 +286,7 @@ const generateNewTree = <
286
let tempRecord: NodeRecord<TNodePublicState> | null = rootRecord;
287
288
const useIdleCallback =
289
- 'requestIdleCallback' in window &&
+ typeof 'requestIdleCallback' !== 'undefined' &&
290
placeholder !== undefined &&
291
// If placeholder is set to null and this is the first build, idle callback
292
// won't be used. It is necessary for trees with async data which can be
0 commit comments