Open
Description
When the fetch runs on the calendar, and the user navigates away from the component before the fetch completes. We end up with it trying to setState
on an unmounted component, which is bad. The options are kinda nasty with one being that we have a variable isMounted
, or something of the sort. Cancelled promises also don't really exist natively, so we either have to add some dependencies (rxjs I would be fine with actually, but I think it's heavy and I would rather not add more dependencies if possible), or copy-paste a bunch of code to poylfill it. Hateful either way.
Metadata
Metadata
Assignees
Labels
No labels