@kaspernj/api-maker 1.0.397 → 1.0.398
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/router/route.jsx +1 -1
- package/src/router/switch.jsx +1 -3
package/package.json
CHANGED
package/src/router/route.jsx
CHANGED
|
@@ -153,7 +153,7 @@ const Route = memo(shapeComponent(class Route extends BaseComponent {
|
|
|
153
153
|
componentPathParts.push(component)
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
const newParams = Object.assign(this.currentParams, params)
|
|
156
|
+
const newParams = Object.assign({}, this.currentParams, params)
|
|
157
157
|
|
|
158
158
|
this.setInstance({componentPathParts, match: {params}, newParams})
|
|
159
159
|
this.setState({matches})
|
package/src/router/switch.jsx
CHANGED
|
@@ -64,11 +64,9 @@ const Switch = memo(shapeComponent(class Switch extends BaseComponent {
|
|
|
64
64
|
|
|
65
65
|
newPathsMatched[path] = matched
|
|
66
66
|
|
|
67
|
-
const pathShown = this.pathShown(newPathsMatched)
|
|
68
|
-
|
|
69
67
|
this.setState({
|
|
70
68
|
lastUpdate: Math.random() + new Date().getTime(),
|
|
71
|
-
pathShown,
|
|
69
|
+
pathShown: this.pathShown(newPathsMatched),
|
|
72
70
|
pathsMatched: newPathsMatched
|
|
73
71
|
})
|
|
74
72
|
}
|