Skip to content

Conversation

@mickael-menu
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses a potential race condition in the EPUB navigator by adding proper task lifecycle management for the spread loading process. The fix ensures that async tasks can be cancelled when the spread view is being cleaned up.

Changes:

  • Added a spreadLoadTask property to track the async task created when spread loading completes
  • Updated clear() method to stop web view loading and cancel any pending spread load task
  • Modified spreadDidLoad(_ body: Any) to store the task reference for later cancellation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants