vueuse/vueuse

`refWithControl` | Is is able to implement async control of onBeforeChange

Open

#4,668 opened on 2025年3月20日

GitHub で見る
 (3 comments) (1 reaction) (0 assignees)TypeScript (18,007 stars) (2,269 forks)batch import
good first issue

説明

Clear and concise description of the problem

Before the value is changed, it is possible to confirm it in a pop-up window, and then change it, sometimes without confirmation. The onBeforeChange seems to be able to do this, but the problem is that it is synchronous and the popup is asynchronous.

Suggested solution

onBeforeChange:<T>(v:T)=>Promise<T>

Alternative

No response

Additional context

No response

Validations

コントリビューターガイド

`refWithControl` | Is is able to implement async control of onBeforeChange · vueuse/vueuse#4668 | Good First Issue