@@ -1,6 +1,6 @@
{
"name": "@shaun/alpinejs-router",
- "version": "1.2.9",
+ "version": "1.2.10",
"description": "Easy to use and flexible router for Alpine.js",
"type": "module",
"main": "dist/module.cjs.js",
@@ -22,7 +22,7 @@ export default function (Alpine) {
return state.query
},
get params () {
- return state.params
+ return state.params || {}
get loading () {
return state.loading