-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法使用redux-saga #46
Comments
|
集成过程: 1.app.js//注意,该库的引用必须早于config-store的引用 2./store/config-store.js
3.需要引用effects的地方
|
您好 ,我启动服务的时候出现了这个错误, |
@wkh2 你好,因为 �H5 的 TS 支持还没完全好,所以建议先使用 js 来开发 |
@luckyadam 你好,我在集成 |
-webkit-box-orient: vertical; |
@Rychou 需要降级下 redux-saga 的版本到^0.16.2 |
taro-cli:v0.0.41
redux配置:
`
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk'
import createSagaMiddleware from 'redux-saga'
import rootReducer from '../reducers'
import rootSaga from '../sagas';
const sagaMiddleware = createSagaMiddleware()
let middlewares = [thunk,sagaMiddleware]
export default function configStore () {
const store = createStore(rootReducer, applyMiddleware(...middlewares));
// then run the saga
sagaMiddleware.run(rootSaga);
return store
}
`
运行报错:
在对应的dist/npm/redux-saga目录下,发现并没有相关的文件
The text was updated successfully, but these errors were encountered: