Skip to content

Commit 58fc946

Browse files
committed
fix: preserve hook name
1 parent 3fecbcf commit 58fc946

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ function createStore({
6666
}
6767
}
6868

69-
export function useBottomSheetMachine(props: BottomSheetMachineProps = {}) {
69+
export const useBottomSheetMachine = function useBottomSheetMachine(
70+
props: BottomSheetMachineProps = {}
71+
) {
7072
const [store] = useState(() => createStore(props))
7173
/*
7274
// useState lets us create the store exactly once, which is a guarantee that useMemo doesn't provide

0 commit comments

Comments
 (0)