Annotations: Fix rendering (#68038)

This commit is contained in:
Adela Almasan
2023-05-09 23:12:02 +03:00
committed by GitHub
parent c9e5c229ec
commit 13603c7d71
@@ -28,6 +28,11 @@ export const AnnotationsPlugin = ({ annotations, timeZone, config }: Annotations
}
annotationsRef.current = views;
return () => {
// clear on unmount
annotationsRef.current = [];
};
}, [annotations]);
useLayoutEffect(() => {