1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Setup of single store works for multiple timeline

This commit is contained in:
Zhiyuan Zheng
2020-10-24 02:47:57 +02:00
parent 83f6039ade
commit cda67d23f6
16 changed files with 334 additions and 330 deletions

View File

@ -0,0 +1,24 @@
import { createSlice } from '@reduxjs/toolkit'
const instanceInfoSlice = createSlice({
name: 'instanceInfo',
initialState: {},
reducers: {
// increment (state) {
// state.value++
// },
// decrement (state) {
// state.value--
// },
// incrementByAmount (state, action) {
// state.value += action.payload
// }
}
})
export const getCurrent = state => state.current
export const getCurrentToken = state => state.currentToken
export const getRemote = state => state.remote
// export const { increment, decrement, incrementByAmount } = counterSlice.actions
export default instanceInfoSlice.reducer