boring-router
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -549,2 +549,18 @@ "use strict"; | ||
} | ||
for (let reactiveEntry of this._reactiveEntrySet) { | ||
if (reactiveEntry.disposer) { | ||
reactiveEntry.disposer(); | ||
console.warn('Unexpected disposer during enter phase.'); | ||
} | ||
(0, _utils_1.tolerate)(() => { | ||
switch (reactiveEntry.type) { | ||
case 'autorun': | ||
reactiveEntry.disposer = (0, mobx_1.autorun)(reactiveEntry.view, reactiveEntry.options); | ||
break; | ||
case 'reaction': | ||
reactiveEntry.disposer = (0, mobx_1.reaction)(reactiveEntry.expression, reactiveEntry.effect, reactiveEntry.options); | ||
break; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -594,18 +610,2 @@ /** @internal */ | ||
} | ||
for (let reactiveEntry of this._reactiveEntrySet) { | ||
if (reactiveEntry.disposer) { | ||
reactiveEntry.disposer(); | ||
console.warn('Unexpected disposer during afterEnter phase.'); | ||
} | ||
(0, _utils_1.tolerate)(() => { | ||
switch (reactiveEntry.type) { | ||
case 'autorun': | ||
reactiveEntry.disposer = (0, mobx_1.autorun)(reactiveEntry.view, reactiveEntry.options); | ||
break; | ||
case 'reaction': | ||
reactiveEntry.disposer = (0, mobx_1.reaction)(reactiveEntry.expression, reactiveEntry.effect, reactiveEntry.options); | ||
break; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -612,0 +612,0 @@ /** @internal */ |
{ | ||
"name": "boring-router", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "A type-safe MobX router with parallel routing support.", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8563c7cdfd550e38d284391cb4b689c7dc14b925" | ||
"gitHead": "8c5732eae954466cc429d6a40fadb26c05c7eca0" | ||
} |
@@ -929,2 +929,27 @@ import { | ||
} | ||
for (let reactiveEntry of this._reactiveEntrySet) { | ||
if (reactiveEntry.disposer) { | ||
reactiveEntry.disposer(); | ||
console.warn('Unexpected disposer during enter phase.'); | ||
} | ||
tolerate(() => { | ||
switch (reactiveEntry.type) { | ||
case 'autorun': | ||
reactiveEntry.disposer = autorun( | ||
reactiveEntry.view, | ||
reactiveEntry.options, | ||
); | ||
break; | ||
case 'reaction': | ||
reactiveEntry.disposer = reaction( | ||
reactiveEntry.expression, | ||
reactiveEntry.effect, | ||
reactiveEntry.options, | ||
); | ||
break; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -988,27 +1013,2 @@ | ||
} | ||
for (let reactiveEntry of this._reactiveEntrySet) { | ||
if (reactiveEntry.disposer) { | ||
reactiveEntry.disposer(); | ||
console.warn('Unexpected disposer during afterEnter phase.'); | ||
} | ||
tolerate(() => { | ||
switch (reactiveEntry.type) { | ||
case 'autorun': | ||
reactiveEntry.disposer = autorun( | ||
reactiveEntry.view, | ||
reactiveEntry.options, | ||
); | ||
break; | ||
case 'reaction': | ||
reactiveEntry.disposer = reaction( | ||
reactiveEntry.expression, | ||
reactiveEntry.effect, | ||
reactiveEntry.options, | ||
); | ||
break; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -1015,0 +1015,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
252250