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:
24
src/stacks/common/instanceInfoSlice.js
Normal file
24
src/stacks/common/instanceInfoSlice.js
Normal 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
|
Reference in New Issue
Block a user