fish-redux
fish-redux copied to clipboard
如何监听store中state的变化?有没有类似于Vue中的watch方法?
子页面需要根据store中state的某值变化而做一些操作,有没有类似于vue中的watch方法,或者如何处理会好一点?
只是需要订阅变化而不需要知道变化内容
AppStore.store.subscribe
都需要订阅
AppStore.store.observable