mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
[comments] change word ‘dependencie’ to ‘dependencies’ (#6904)
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
This commit is contained in:
parent
45fbed94d6
commit
3fff701b77
|
@ -123,7 +123,7 @@ const PanelList: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix = ''
|
||||||
setDelta(Math.abs(browserTime - serverTime));
|
setDelta(Math.abs(browserTime - serverTime));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* React wants to include browserTime to useEffect dependencie list which will cause a delta change on every re-render
|
* React wants to include browserTime to useEffect dependencies list which will cause a delta change on every re-render
|
||||||
* Basically it's not recommended to disable this rule, but this is the only way to take control over the useEffect
|
* Basically it's not recommended to disable this rule, but this is the only way to take control over the useEffect
|
||||||
* dependencies and to not include the browserTime variable.
|
* dependencies and to not include the browserTime variable.
|
||||||
**/
|
**/
|
||||||
|
|
Loading…
Reference in a new issue