@lightningjs/blits 1.16.0 → 1.16.1
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/router/router.js +8 -4
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/router/router.js
CHANGED
|
@@ -156,16 +156,20 @@ export const navigate = async function () {
|
|
|
156
156
|
holder.populate({})
|
|
157
157
|
holder.set('w', '100%')
|
|
158
158
|
holder.set('h', '100%')
|
|
159
|
+
|
|
160
|
+
const queryParamsData = {}
|
|
161
|
+
const queryParamsEntries = [...queryParams.entries()]
|
|
162
|
+
for (let i = 0; i < queryParamsEntries.length; i++) {
|
|
163
|
+
queryParamsData[queryParamsEntries[i][0]] = queryParamsEntries[i][1]
|
|
164
|
+
}
|
|
165
|
+
|
|
159
166
|
// merge props with potential route params, navigation data and route data to be injected into the component instance
|
|
160
167
|
const props = {
|
|
161
168
|
...this[symbols.props],
|
|
162
169
|
...route.params,
|
|
163
170
|
...navigationData,
|
|
164
171
|
...route.data,
|
|
165
|
-
...
|
|
166
|
-
obj[item[0]] = item[1]
|
|
167
|
-
return obj
|
|
168
|
-
}, {}),
|
|
172
|
+
...queryParamsData,
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
view = await route.component({ props }, holder, this)
|