You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/27 01:53:41 UTC

[GitHub] [cordova-plugin-screen-orientation] sqzbx opened a new issue #44: Is there any way to unsubscribe to "onChange" event

sqzbx opened a new issue #44: Is there any way to unsubscribe to "onChange" event
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/44
 
 
   As the title... So I currently have the code
   
   ```
   this.screenOrientation.onChange().subscribe(
     () => {
       // code
     }
   );
   ```
   This code gets subscribed on every time the page open and fires multiple times. I'm looking for a way for it to only trigger once. Any help will be appreciated... 💯 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org