Skip to content

Commit

Permalink
πŸ“ Chore(#347): SteadyState reset λ©”μ„œλ“œ μΆ”κ°€
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Feb 26, 2024
1 parent 9b17a91 commit 730f612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stores/createSteadyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ interface CreateSteadyState {
steadyState: SteadyStateType;
// eslint-disable-next-line no-unused-vars
setSteadyState: (steadyState: SteadyStateType) => void;
resetSteadyState: () => void;
}

const useCreateSteadyStore = create(
persist<CreateSteadyState>(
(set) => ({
steadyState: {} as SteadyStateType,
setSteadyState: (steadyState: SteadyStateType) => set({ steadyState }),
resetSteadyState: () => set({ steadyState: {} as SteadyStateType }),
}),
{
name: CreateSteadyStorageKey,
Expand Down

0 comments on commit 730f612

Please sign in to comment.