iron-meteor/iron-location

Iron.Location.get() sometimes miss its properties.

y-ich opened this issue · 1 comments

Sometimes Iron.Location.get() has empty strings for host, pathname, etc.
I have no idea about the condition though...

It seems that on first page load it work, but if the function is called again.
I use it inside Iron Router

  data: function() {
    let hostname = Iron.Location.get().hostname;

the first time the data function is called, it works, but if a reactive data source changes, it doesn't anymore.