Lanistor
Lanistor
@qijizhuimeng 目前可以使用Control.state读取,但是前提是已经跳转到下一个页面了(可以使用Control.history.go(1)跳转到下一个页面)。不过这样做的目的是什么?为什么不用Control.go(path, state)?
@qijizhuimeng 路由跳转的回调方法目前无法提供,因为目前浏览器没有开放这样的API,可以自行监听history变化来实现类似功能: ``` import Control from 'react-keeper'; Control.history && Control.history.listen(function(location, action){ }); ```
@cendy-z 可以按照`dogbutcat`同学的方式尝试下
IE11以下不支持__proto__,可以通过npm方式引入React-Keeper,然后使用[transform-proto-to-assign](https://babeljs.io/docs/en/babel-plugin-transform-proto-to-assign/)转义__proto__来解决此问题。
react-router?
@zhdxmw 安装v2.1.9版本,已经修复这个问题。
@flymzero 参考这个Issue:https://github.com/vifird/react-keeper/issues/29
@FourLeafClover 可以贴一下完整的页面URL,考虑是因为微信在URL中加入参数`(?a=b)`,加入位置是`#`之前,导致hash失效。
@josuemontano Glad to hear this, welcome to join us. Let's chat by email: `[email protected]`.