iron-meteor/iron-location

Iron.Location.go without triggering reactivity

Opened this issue · 1 comments

I recall IronLocation has a pushState function which could change the URL without being reactive

Will this be added to Iron.Location or how can I get same behaviour?

Thanks

This is the missing logic. The skipReativity. I tried forking this repo and add the logic back in and it works.. But why did you remove it?

IronLocation.pushState = function (state, title, url, skipReactive) {
  setState(state, title, url, skipReactive);

  if (history.pushState)
    history.pushState(state, title, url);
  else
    window.location = url;
};

[https://github.com/EventedMind/iron-router/blob/v0.9.1/lib/client/location.js#L72]