Open grahamlangford opened 8 months ago
This might also be possible via types. It was annoyance for me too:
Side note: components should prefer cancelling work in progress wherever possible (which is rarely possible, actually) https://legacy.reactjs.org/blog/2015/12/16/ismounted-antipattern.html
Context
isMounted
function argisMounted
when working withuseAsyncEffect
isMounted