Skip to content

feat: make openFilePicker function return a promise, add detection of picker cancellation #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrKampla
Copy link
Collaborator

@MrKampla MrKampla commented Aug 8, 2025

Summary:

Adds a new prop called "detectCancellation" that can be set to "promiseResultOnly", "promiseResultAndHookState" or false. Allows to define if the cancellation detection should be shown and when (only in the result type or also in hook state). Default is false because in most use cases we don't care about the cancelled selections.

Copy link

vercel bot commented Aug 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
use-file-picker ❌ Failed (Inspect) Aug 8, 2025 5:22pm

@MrKampla MrKampla requested a review from Jaaneek August 8, 2025 17:23
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.

1 participant