mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-04-03 01:38:39 +02:00
11 lines
452 B
JavaScript
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)
|
|
} |