Asynchronous methods within hooks can lead to issues, where your asynchronous code resolves after your component / hook was unmounted.
This usually causes react warnings, that you cannot set state on an unmounted component.
const MyComponent = ({ id }) => {
const [status, setStatus] = useState();