Skip to content

Commit 9a2d900

Browse files
committed
fix: standardize 'DISMISS_BLOCK' action naming in history module
1 parent e3a07ba commit 9a2d900

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/history/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export type HistoryAction =
6868
| 'BACK'
6969
| 'GO'
7070
| 'BLOCK'
71-
| 'DISMISS-BLOCK'
71+
| 'DISMISS_BLOCK'
7272

7373
export type BlockerFnArgs = {
7474
currentLocation: HistoryLocation
@@ -176,7 +176,7 @@ export function createHistory(opts: {
176176

177177
if (done) {
178178
isBlocked = value
179-
if (blockNotified) notify({ type: 'DISMISS-BLOCK' })
179+
if (blockNotified) notify({ type: 'DISMISS_BLOCK' })
180180
break
181181
}
182182
}
@@ -488,7 +488,7 @@ export function createBrowserHistory(opts?: {
488488

489489
if (done) {
490490
isBlocked = value
491-
if (blockNotified) history.notify({ type: 'DISMISS-BLOCK' })
491+
if (blockNotified) history.notify({ type: 'DISMISS_BLOCK' })
492492
break
493493
}
494494
}

0 commit comments

Comments
 (0)