We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5dc061 commit 6ff6124Copy full SHA for 6ff6124
src/plugins/es_ui_shared/public/request/use_request.ts
@@ -134,11 +134,6 @@ export const useRequest = <D = any, E = Error>(
134
135
// Schedule the next poll request when the previous one completes.
136
useEffect(() => {
137
- if (isMounted.current === false) {
138
- // Don't schedule a request on component mount.
139
- return;
140
- }
141
-
142
// When a request completes, attempt to schedule the next one. Note that we aren't re-scheduling
143
// a request whenever sendRequest's dependencies change.
144
if (!isLoading) {
0 commit comments