Skip to content

Commit

Permalink
Introduce setTimeout to mitigate the issue with iPhone delaying event…
Browse files Browse the repository at this point in the history
…s comming from onyx store
  • Loading branch information
sosek108 committed Mar 7, 2025
1 parent eaddb5d commit e0c4aa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Expensify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ function Expensify() {
return;
}

ActiveClientManager.init();
// Set a timeout to initialize the client after a short delay.
// This is necessary because on iPhone web, Onyx events can be delayed,
// causing issues with client initialization if done immediately.
setTimeout(ActiveClientManager.init, 400);
};

const setNavigationReady = useCallback(() => {
Expand Down

0 comments on commit e0c4aa1

Please sign in to comment.