Skip to content

Commit cb6a82d

Browse files
committed
Ignore eslint violation from isOutdatedRequest flag.
1 parent 82ba37c commit cb6a82d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/es_ui_shared/public/request/use_request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export const useRequest = <D = any, E = Error>(
130130

131131
// Clean up timeout and mark inflight requests as stale if the poll interval changes.
132132
return () => {
133+
/* eslint-disable-next-line react-hooks/exhaustive-deps */
133134
isOutdatedRequest = true;
134135
if (pollIntervalIdRef.current) {
135136
clearTimeout(pollIntervalIdRef.current);

0 commit comments

Comments
 (0)