boring-router
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -80,2 +80,3 @@ "use strict"; | ||
}); | ||
(0, mobx_1.makeObservable)(this); | ||
this.$name = name; | ||
@@ -82,0 +83,0 @@ this.$group = group; |
@@ -206,2 +206,3 @@ "use strict"; | ||
}); | ||
(0, mobx_1.makeObservable)(this); | ||
this._history = history; | ||
@@ -208,0 +209,0 @@ this._segmentMatcher = segmentMatcher || DEFAULT_SEGMENT_MATCHER_CALLBACK; |
{ | ||
"name": "boring-router", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A type-safe MobX router with parallel routing support.", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "31837e1d406f81c6927d97987e48be30bcc1ab1e" | ||
"gitHead": "bc972cdc47ba4333315d13bbb263bd051328b0ce" | ||
} |
@@ -1,2 +0,2 @@ | ||
import {computed} from 'mobx'; | ||
import {computed, makeObservable} from 'mobx'; | ||
import {Dict, EmptyObjectPatch} from 'tslang'; | ||
@@ -87,2 +87,4 @@ | ||
) { | ||
makeObservable(this); | ||
this.$name = name; | ||
@@ -89,0 +91,0 @@ this.$group = group as TSpecificGroupName; |
import hyphenate from 'hyphenate'; | ||
import _ from 'lodash'; | ||
import {action, observable, runInAction} from 'mobx'; | ||
import {action, makeObservable, observable, runInAction} from 'mobx'; | ||
import {Dict, EmptyObjectPatch} from 'tslang'; | ||
@@ -274,2 +274,4 @@ | ||
constructor(history: RouterHistory, {segmentMatcher}: RouterOptions = {}) { | ||
makeObservable(this); | ||
this._history = history; | ||
@@ -276,0 +278,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
239201
4748