Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Commit 9754340

Browse files
committed
polish
1 parent 0adf086 commit 9754340

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Hooks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export function useNavigationEvents(callback: NavigationEventCallback) {
6363
// When mounting/focusing a new screen and subscribing to focus, the focus event should be fired
6464
// It wouldn't fire if we did subscribe with useEffect()
6565
useLayoutEffect(() => {
66-
const subscribedCallback: NavigationEventCallback = evt => {
67-
const latestEventHandler = getLatestCallback();
68-
latestEventHandler(evt);
66+
const subscribedCallback: NavigationEventCallback = event => {
67+
const latestCallback = getLatestCallback();
68+
latestCallback(event);
6969
};
7070

7171
const subs = [

0 commit comments

Comments
 (0)