Annotations: Fix rendering (#68038)
This commit is contained in:
@@ -28,6 +28,11 @@ export const AnnotationsPlugin = ({ annotations, timeZone, config }: Annotations
|
||||
}
|
||||
|
||||
annotationsRef.current = views;
|
||||
|
||||
return () => {
|
||||
// clear on unmount
|
||||
annotationsRef.current = [];
|
||||
};
|
||||
}, [annotations]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user