Repository navigation
feat: add slowRenderingDetection config option - #60
Merged
Merged
Conversation
Let React Native apps turn off native slowRenders and frozenRenders spans on iOS and Android. Leaving it unset keeps the current behaviour.
…onfig # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
slowRenderingDetectionconfig option. Set it tofalseto stop the native SDK sendingslowRendersandfrozenRendersspans on iOS and Android. Until now React Native apps had no way to turn these off, even though both native builders support it.Leaving it unset keeps the current behaviour, so nothing changes for existing apps.
Native settings are read once per process, so the app must relaunch for a change to apply. A JS reload is not enough.
Related
The bug fixes are in the iOS SDK: middleware-labs/middleware-ios#67. This PR does not depend on it, because
disableSlowRenderingDetection()already exists in the iOS and Android versions pinned here. The podspec's~> 2.3.0picks up a 2.3.x iOS release onpod update.Testing
tsc --noEmitand ESLint on the changed files are clean.Release
This PR also bumps the package to 2.3.2 and moves
[Unreleased]to[2.3.2]inCHANGELOG.md, which includes the iOS SDK changes from #62.Merging does not publish anything. To release, run the npm-publish workflow on
mainwith version2.3.2(nov). Update the changelog date first if it goes out after 2026-11-03.