Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created December 22, 2023 18:04
Show Gist options
  • Save Daltonic/31834ef324af3ead415c0cebcf1a5c7e to your computer and use it in GitHub Desktop.
Save Daltonic/31834ef324af3ead415c0cebcf1a5c7e to your computer and use it in GitHub Desktop.
Event X
import { createSlice } from '@reduxjs/toolkit'
import { globalStates as GlobalStates } from './states/globalStates'
import { globalActions as GlobalActions } from './actions/globalActions'
export const globalSlices = createSlice({
name: 'global',
initialState: GlobalStates,
reducers: GlobalActions,
})
export const globalActions = globalSlices.actions
export default globalSlices.reducer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment