Skip to content

Commit

Permalink
Remove dependency that was causing effect to re-execute infinitely.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Jan 7, 2020
1 parent 4b6c2f8 commit 3fb6d77
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 3fb6d77

Please sign in to comment.