navgo 4.0.2 → 4.0.3
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -255,7 +255,7 @@ export default class Navgo {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
async #run_loader(route, params) {
|
|
258
|
-
const ret_val = route[1].loader?.(params)
|
|
258
|
+
const ret_val = route[1].loader?.(params, route)
|
|
259
259
|
return Array.isArray(ret_val) ? Promise.all(ret_val) : ret_val
|
|
260
260
|
}
|
|
261
261
|
|