mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: Fix rendering (#68038)
This commit is contained in:
parent
c9e5c229ec
commit
13603c7d71
@ -28,6 +28,11 @@ export const AnnotationsPlugin = ({ annotations, timeZone, config }: Annotations
|
|||||||
}
|
}
|
||||||
|
|
||||||
annotationsRef.current = views;
|
annotationsRef.current = views;
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
// clear on unmount
|
||||||
|
annotationsRef.current = [];
|
||||||
|
};
|
||||||
}, [annotations]);
|
}, [annotations]);
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user