mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
Merge pull request #5808 from BlueWallet/listeners
DEL: Remove "removelisteners" call as it causes crashes when debugging
This commit is contained in:
commit
8a10dfaabf
1 changed files with 0 additions and 11 deletions
11
App.js
11
App.js
|
@ -117,17 +117,6 @@ const App = () => {
|
|||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [walletsInitialized]);
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
Linking.removeEventListener('url', handleOpenURL);
|
||||
AppState.removeEventListener('change', handleAppStateChange);
|
||||
eventEmitter?.removeAllListeners('onNotificationReceived');
|
||||
eventEmitter?.removeAllListeners('openSettings');
|
||||
eventEmitter?.removeAllListeners('onUserActivityOpen');
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
const addListeners = () => {
|
||||
Linking.addEventListener('url', handleOpenURL);
|
||||
AppState.addEventListener('change', handleAppStateChange);
|
||||
|
|
Loading…
Add table
Reference in a new issue