cyclejs-community / cyclic-router

Router Driver built for Cycle.js
MIT License
109 stars 25 forks source link

Explain how to dynamically change route in README #114

Closed nicoespeon closed 8 years ago

nicoespeon commented 8 years ago

I've had some hard time figuring out how I could dynamically go back to previous page in my app.

Actually, I found myself re-implementing a lot of stuff before the AH-AH moment when I realized that I could pass inputs the cyclejs/history's driver would accept… and so that click$.mapTo({ type: "goBack" }) was the droid I was looking for 👋

I thought that putting it explicitly in the README could help people connecting dots faster than I did 😄

What do you think? Does that look clear or should I improve something?

TylorS commented 8 years ago

Thanks for your contribution. LGTM