Skip to content

Commit 41ce5d5

Browse files
author
Saiya
committed
chore: add comments
1 parent 347607d commit 41ce5d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export function StickyContainer(
107107
useEffect(() => {
108108
optionsRef.current.fixedOffsetTop = offsetTop;
109109
optionsRef.current.defaultMode = defaultMode;
110+
// delay the update to ensure DOM is ready
110111
setTimeout(() => {
111112
scheduleUpdate();
112113
}, 10);

0 commit comments

Comments
 (0)