0
有誰知道如何添加終極版 - 堅持https://github.com/rt2zz/redux-persist 從入門工具包店:https://www.baqend.com/guide/starter-kits/react/使用終極版 - 堅持與Baqend反應,和/終極版入門
import { applyMiddleware, combineReducers } from 'redux'
import { createStoreWithBaqend, baqendReducer } from 'redux-baqend'
import middlewares from '../middleware'
import reducers from '../reducers'
import { db } from 'baqend'
export default (initialState = {}) => {
const reducer = combineReducers({
baqend: baqendReducer,
...reducers
})
const middleware = applyMiddleware(
...middlewares
)
return createStoreWithBaqend(
db.connect('remarkable-apple-XX', true),
reducer,
initialState,
middleware
)
}