Skip to content

Commit

Permalink
fix(lazyLoad): Always delete the lazy load promise after it settles.
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Sep 19, 2016
1 parent 190d122 commit dd2f101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/lazyLoadStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const lazyLoadHook: TransitionHookFn = (transition: Transition) => {
if (!promise) {
promise = hook['_promise'] = hook(transition).then(updateStateRegistry);
const cleanup = () => delete hook['_promise'];
promise.catch(cleanup, cleanup);
promise.then(cleanup, cleanup);
}

return promise.then(retryOriginalTransition);
Expand Down

0 comments on commit dd2f101

Please sign in to comment.