Skip to content

Bugfix/strictmode mobile#758

Open
tvanlaerhoven wants to merge 7 commits intodevelopfrom
bugfix/strictmode-mobile
Open

Bugfix/strictmode mobile#758
tvanlaerhoven wants to merge 7 commits intodevelopfrom
bugfix/strictmode-mobile

Conversation

@tvanlaerhoven
Copy link
Member

Using StrictMode in React/ReactNative is useful for detecting components with unsafe lifecycles or unexpected side effects.
We were already using it in the Web example, but not yet for iOS/Android.

StrictMode mounts/unmounts a component a few times, highlighting any issues. In this case player listeners were removed in on unmounting, but not added again on mounting. This PR makes a fix for that.

Also added StrictMode to e2e app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

onPlayerReady returns a broken THEOplayer instance when wrapped in React StrictMode

1 participant