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

Commit 0e57e1a

Browse files
committed
Remove previous handler when listener unsubscribed
1 parent 4b5f2c8 commit 0e57e1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/platforms/react-native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const dance = (authUrl) => {
1919

2020
const onLinkChange = ({ url }) => {
2121
Linking.removeEventListener('url', onLinkChange);
22+
previousOnLinkChange = undefined;
2223
handleUrl(url);
2324
};
2425

0 commit comments

Comments
 (0)