Skip to content

Commit addba26

Browse files
committed
fix: patch up resetStore docs
1 parent bae9d0d commit addba26

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

apps/docs/src/docs/store/state.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,12 @@ const Component = () => {
105105

106106
## Resetting the state
107107

108-
Hana provides a `useResetStore()` hook that can be used to reset the state object to its initial value. This hook is useful when you need to reset the state object to its initial value.
108+
Hana provides a `resetStore()` function that can be used to reset the state object to its initial value. You can call this function anywhere in your application to reset the state.
109109

110-
```jsx{4,8}
111-
import { useResetStore } from '@hanabira/store';
110+
```jsx{6}
111+
import { resetStore } from '@hanabira/store';
112112
113113
const Component = () => {
114-
const resetStore = useResetStore();
115-
116114
return (
117115
<div>
118116
<button onClick={() => resetStore()}>Reset state</button>

0 commit comments

Comments
 (0)