fix: bail-out from async `createLottie` after unmount
Description
Without this we might end up with a warning in older versions of React:
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
Type of change
- [x] Patch: Bug (non-breaking change which fixes an issue)
Checklist
- [x] This is something we need to do.
This rull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
Bump for stale bot
This rull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
Bump
This rull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
Bump
This rull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.