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

[major] choo v4 #352

Merged
merged 35 commits into from
Dec 11, 2016
Merged

[major] choo v4 #352

merged 35 commits into from
Dec 11, 2016

Conversation

yoshuawuyts
Copy link
Member

Update choo to version 4 ✨ - changes are included in CHANGELOG.md. I'd copy and paste it here, but my clipboard has crashed and I'm live streaming so lol can't reboot computer

@yoshuawuyts yoshuawuyts merged commit a7916ec into master Dec 11, 2016
${pathname(state, prev, send)}
${nav(state, prev, send)}
<section class="fl mt4 w-80 db">
${emailList(state, prev, send)}
</section>
</main>
`

function goHome () {
send('location:set', { pathname: '/' })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this supposed to be {href: '/'} ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does require a bit of clarification. A quick demo shows that { href: '/' } changes window.location and reroutes the way I expect it should. However, the documentation was updated to use { pathname: '/'} which doesn't update the window.location, nor does it re-route correctly (though it does appear to change the state).

@yoshuawuyts
Copy link
Member Author

yoshuawuyts commented Dec 16, 2016 via email

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.

5 participants