Skip to content

Commit

Permalink
refactor: only remove app url listener
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Nov 17, 2024
1 parent 2b9e0d0 commit 86f90a4
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 86f90a4

Please sign in to comment.