Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
y-ich opened this issue Dec 19, 2014 · 1 comment
Open

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

y-ich opened this issue Dec 19, 2014 · 1 comment

Comments

@y-ich
Copy link

y-ich commented Dec 19, 2014

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

@micktaiwan
Copy link

micktaiwan commented Jul 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants