Skip to content

Use replace instead of push in init render #52

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

Merged
merged 1 commit into from
May 25, 2017
Merged

Conversation

mehwww
Copy link
Contributor

@mehwww mehwww commented Mar 15, 2017

#51

@xiachaoxulu
Copy link

i think should give currentPath a init value 。 such as window.location.pathname

@xiachaoxulu
Copy link

i think more, when currentPath is undefined ,router should replace 。
because currentPath init value should be from server , not from window.location.pathname。
window.location.pathname is unless

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

Successfully merging this pull request may close these issues.

3 participants