Skip to content

Commit

Permalink
refactor: only remove app url listener (#1729)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Nov 17, 2024
1 parent 2b9e0d0 commit cc72f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/listeners/AppUrlListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export default function AppUrlListener() {
const onAppUrlEvent = useEffectEvent(onAppUrl);

useEffect(() => {
App.addListener("appUrlOpen", (event) => {
const listener = App.addListener("appUrlOpen", (event) => {
onAppUrlEvent(normalizeObjectUrl(event.url));
});

return () => {
App.removeAllListeners();
listener.then((l) => l.remove());
};
}, []);

Expand Down

0 comments on commit cc72f1a

Please sign in to comment.