Skip to content

Commit 4a69070

Browse files
authored
Merge pull request #80 from Lodin/fix/ssr-2
SSR: Use real method instead of a string
2 parents 6dd220c + f4d9cd4 commit 4a69070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tree.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const generateNewTree = <
286286
let tempRecord: NodeRecord<TNodePublicState> | null = rootRecord;
287287

288288
const useIdleCallback =
289-
typeof 'requestIdleCallback' !== 'undefined' &&
289+
typeof requestIdleCallback !== 'undefined' &&
290290
placeholder !== undefined &&
291291
// If placeholder is set to null and this is the first build, idle callback
292292
// won't be used. It is necessary for trees with async data which can be

0 commit comments

Comments
 (0)