Skip to content

Commit d36e6aa

Browse files
authored
fix: handling positioning prop update (#112)
1 parent f9549ef commit d36e6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Timeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function Timeline(props: TimelineProps) {
9797
resizeObserver.observe(rightContainer.current);
9898
}
9999
return () => resizeObserver.disconnect();
100-
}, []);
100+
}, [positioning]);
101101

102102
return (
103103
<div className={['timeline', `timeline--${positioning}`, className].join(' ')} ref={timelineRef}>

0 commit comments

Comments
 (0)