1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-04-03 01:38:39 +02:00
ipfs-boards/src/sagas/index.js
2018-02-05 22:19:54 +01:00

11 lines
452 B
JavaScript

import { takeEvery } from 'redux-saga/effects'
import { CREATE_BOARD, ADD_POST, ORBITDB_REPLICATED, ORBITDB_WRITE } from '../actions/actionTypes'
import { createBoard, updateBoard } from './boards'
import { addPost } from './posts'
export default function* saga(){
yield takeEvery(CREATE_BOARD, createBoard)
yield takeEvery(ADD_POST, addPost)
yield takeEvery(ORBITDB_WRITE, updateBoard)
yield takeEvery(ORBITDB_REPLICATED, updateBoard)
}