You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Presentation API, we converted the API from having one statechange event to distinct events for each state, to improve developer ergonomics: fewer if/then/else blocks in a monolithic event handler.
(I can't find the specific GH issue where this was discussed, since I think it was an offshoot of other API discussions. Can dig some more if interested.)
Perhaps the Remote Playback API should do the same:
However, the initial value of remote.state does not seem to be defined; that would need to be addressed to determine whether an additional connecting event is necessary.
The text was updated successfully, but these errors were encountered:
In the Presentation API, we converted the API from having one statechange event to distinct events for each state, to improve developer ergonomics: fewer if/then/else blocks in a monolithic event handler.
(I can't find the specific GH issue where this was discussed, since I think it was an offshoot of other API discussions. Can dig some more if interested.)
Perhaps the Remote Playback API should do the same:
However, the initial value of
remote.state
does not seem to be defined; that would need to be addressed to determine whether an additionalconnecting
event is necessary.The text was updated successfully, but these errors were encountered: