We're trying to access window.location.search but after routing, it is available only in rendered() callback and not in created() callback. Is this by design? We're having some difficulties because of this behaviour. The sample code below demonstrates it.
After clicking the link here http://localhost:3000/hello?param=val
The console output of hello2 template shows:
We found a workaround by passing this.params as part of the template data. It would still be interesting to know if the window.location.search should work in created.
We're trying to access
window.location.search
but after routing, it is available only inrendered()
callback and not increated()
callback. Is this by design? We're having some difficulties because of this behaviour. The sample code below demonstrates it. After clicking the link here http://localhost:3000/hello?param=val The console output of hello2 template shows:Shouldn't the
newParam
be available already increated()
?