cyclejs-community / cyclic-router

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

How to replace a route? #199

Closed siwei-lu closed 6 years ago

siwei-lu commented 6 years ago

just replace, not push.

ntilwalli commented 6 years ago

You should look at @cycle/history for the documentation. Under the hood this router uses https://github.com/ReactTraining/react-router.

In this case you would send an object instead of the pathname string directly like:

{
  type: 'replace',
  pathname: '/some/path/here'
}
siwei-lu commented 6 years ago

@ntilwalli thx

使用 FastHub 从我的 Samsung SM-G9500 发送