Skip to content

Commit 4325192

Browse files
committed
nit: use function keyword
1 parent 3691f6e commit 4325192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type UseOnce = (effect: React.EffectCallback) => void
66
export const useOnce: UseOnce = effect => useEffect(effect, [])
77

88
/** Return a function that re-renders this component, if still mounted */
9-
export const useForceUpdate = () => {
9+
export function useForceUpdate() {
1010
const update = useState<any>(0)[1]
1111
const unmounted = useRef(false)
1212
useOnce(() => () => {

0 commit comments

Comments
 (0)