Skip to content

Commit e718c3e

Browse files
authored
chore: onetimeWatchのコールバックの引数の名前順序が逆
1 parent 94995bf commit e718c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/onetimeWatch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { WatchOptions, WatchSource, watch } from "vue";
66
const onetimeWatch = <T>(
77
source: WatchSource<T>,
88
fn: (
9-
before: T,
10-
after: T | undefined,
9+
after: T,
10+
before: T | undefined,
1111
) => Promise<"unwatch" | "continue"> | "unwatch" | "continue",
1212
options: WatchOptions = {},
1313
) => {

0 commit comments

Comments
 (0)