@yoshuawuyts
i'm
ing nanorouter & sheet-router & wd like 2 hear more about their differences! is it mostly the history, href, &. helpers?
-
-
Replying to @davidtheclark
heya! - yeah mostly; I moved those to standalone repos. Also slightly different syntax, which in practice means nanorouter will load faster
1 reply 0 retweets 1 like -
Replying to @yoshuawuyts
do you recommend one over the other? sounds like nanorouter plus history/href modules might be pretty comprehensive?
1 reply 0 retweets 0 likes -
-
Replying to @yoshuawuyts
I have routing and href() working, but not history() — browser's back leaves app. Tried sheet-router, too, same problem. What am I missing?
1 reply 0 retweets 0 likes -
Replying to @davidtheclark @yoshuawuyts
Seems I need to call `window.history.pushState` in addition to `router()` when changing routes, for back button to work?
1 reply 0 retweets 1 like
yes! - sorry, forgot to mention that. Check out https://github.com/yoshuawuyts/choo/blob/master/index.js#L74-L80 … - all our anchor clicks trigger a pushState call
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.