Skip to content

Commit

Permalink
Remove dependency that was causing effect to re-execute infinitely. (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Jan 9, 2020
1 parent dbdd96a commit 1e9091a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export const useIndexPattern = <T>(setIndexPattern: Dispatch<T>) => {
setIndexPattern(await fetch('/api/uptime/index_pattern', { method: 'GET' }));
}
getIndexPattern();
}, [core.services.http, setIndexPattern]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [core.services.http]);
};

0 comments on commit 1e9091a

Please sign in to comment.