Closed rhartzfeld closed 4 years ago
I just discovered I'm having this issue because I was providing route
via a Riot mixin. My mixin was defined as:
var route = require('riot-route/tag');
riot.mixin('routeMixin', {
route: route
});
I believe that, due to how Riot handles mixins, the non-enumerable inherited properties of route
were being lost. I changed my Mixin to the following and now it works:
riot.mixin('routeMixin', {
getRoute: function() { return route }
});
Closing this issue because it's related to an old router version. Please update to the latest @riotjs/route
version if you can.
Is it possible to get the route query when using tag-based routing? In my tag's
<script>
block I have the following...... but the route object does not have a
query
property. I'm using CommonJS for module loading andriot-route@3.1.1
.