We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358514e commit 23d02d4Copy full SHA for 23d02d4
router/index.tsx
@@ -218,11 +218,11 @@ if (typeof history !== "undefined") {
218
detail: payload,
219
cancelable: true,
220
});
221
- let canceled = false;
+ let ok = true;
222
unstable_batchedUpdates(() => {
223
- canceled = dispatchEvent(before);
+ ok = dispatchEvent(before);
224
225
- if (canceled) return;
+ if (!ok) return;
226
const result = original.call(this, payload.data, unused, payload.url);
227
const event = new CustomEvent(type);
228
0 commit comments