Annotations: Fix rendering (#68038)

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