Skip to content

Commit

Permalink
fix discover container
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Aug 3, 2023
1 parent 20d9ca0 commit b268a36
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ export const DiscoverContainerInternal = ({
const [initialized, setInitialized] = useState(false);

useEffect(() => {
getDiscoverServices().then((svcs) => setDiscoverServices(svcs));
let ignore = false;
getDiscoverServices().then((svcs) => {
if (!ignore) {
setDiscoverServices(svcs);
}
});
return () => {
ignore = true;
};
}, [getDiscoverServices]);

useEffect(() => {
Expand Down

0 comments on commit b268a36

Please sign in to comment.