-
Notifications
You must be signed in to change notification settings - Fork 595
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
[major] choo v4 #352
Conversation
- [ ] don't break hashing - [ ] allow not changing the url fixup! move fns around fixup! add search string
* router: update to latest sheet-router * tests: fix for latest version * tests: fix SSR * tests: fix history
* s/data, state/state, data/ * feat(api): swap arguments
Lol can't use forEach
${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: '/' }) |
There was a problem hiding this comment.
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: '/'}
?
There was a problem hiding this comment.
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).
Yeah it should probably href as that updates the whole url - PR welcome for
docs fixes hah 😅
…On Mon, Dec 12, 2016 at 12:55 AM Eric Buckthal ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In examples/mailbox/views/mailbox.js
<#352>:
> ${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: '/' })
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).
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#352>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWlejx3CNSq8hGeZotpOeq_1yv-UuUEks5rHI1jgaJpZM4LJ_nO>
.
|
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