ВКонтакте
- 2 ответа
- 0 вопросов
2
Вклад в тег
const sagaMiddleware = createSagaMiddleware();
const store = configureStore({
reducer: {
app: VkAppReducer,
},
middleware: [
sagaMiddleware,
],
});
sagaMiddleware.run(rootSaga, store.dispatch);
function* rootSaga(dispatch) {
yield spawn(ChildSaga, dispatch);
}
const params: MethodParams = {
group_id: 1,
access_token: access_token,
onProgress: (s: string) => {
dispatch(setProgress(s));
},
};