[comments] change word ‘dependencie’ to ‘dependencies’ (#6904)

Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
This commit is contained in:
李国忠 2020-03-01 16:34:27 +08:00 committed by GitHub
parent 45fbed94d6
commit 3fff701b77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ const PanelList: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix = ''
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
* dependencies and to not include the browserTime variable.
**/