Skip to content

Commit

Permalink
fix(hooks): usePerson updates whenver a new person ID is passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
lalli-flores committed Dec 16, 2019
1 parent 1e0c1f6 commit 32c3b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/hooks/usePerson.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export default function usePerson(personID) {
return () => {
subscription.unsubscribe();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [peopleAdapter, personID]);

return person;
}

0 comments on commit 32c3b35

Please sign in to comment.