Last active
August 16, 2022 17:27
-
-
Save safronman/b405f7a721b4d10c3b6314d448725828 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createSlice } from '@reduxjs/toolkit' | |
| export const hostAppSlice = createSlice({ | |
| name: 'host-app', | |
| initialState: { | |
| value: false, | |
| }, | |
| reducers: { | |
| changeValue: (state) => { | |
| state.value = true | |
| }, | |
| }, | |
| }) | |
| export const hostAppReducerActions = hostAppSlice.actions | |
| export const hostAppReducer = hostAppSlice.reducer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment