Configuration
Last updated
export const state = {
posts: []
}export const state: State = {
users: []
}export const getPosts = async () => {}
export const addNewPost = async () => {}export const getUsers = async () => {}
export const changeUserAccess = async () => {}export const postsApi = {
getPostsFromServer() {}
}export const adminApi = {
getUsersFromServer() {}
}import * as api from './api'
export {
api
}export const getUser = async () => {}
export const getPosts = async () => {}import { state } from './state'
import * as actions from './actions'
import * as effects from './effects'
export {
state,
actions,
effects
}import { state } from './state'
import * as actions from './actions'
import * as effects from './effects'
export {
state,
actions,
effects
}import { namespaced } from 'overmind/config'
import * as posts from './posts'
import * as admin from './admin'
export const config = namespaced({
posts,
admin
})import { merge, namespaced } from 'overmind/config'
import { state } from './state'
import * as posts from './posts'
import * as admin from './admin'
export const config = merge(
{
state
},
namespaced({
posts,
admin
})
)