Skip to content

Commit dd2f101

Browse files
fix(lazyLoad): Always delete the lazy load promise after it settles.
1 parent 190d122 commit dd2f101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/lazyLoadStates.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const lazyLoadHook: TransitionHookFn = (transition: Transition) => {
6161
if (!promise) {
6262
promise = hook['_promise'] = hook(transition).then(updateStateRegistry);
6363
const cleanup = () => delete hook['_promise'];
64-
promise.catch(cleanup, cleanup);
64+
promise.then(cleanup, cleanup);
6565
}
6666

6767
return promise.then(retryOriginalTransition);

0 commit comments

Comments
 (0)