How can I know whether automatic batching has been enabled in production

  1. SDK Version: 48
  2. Platforms(Android/iOS/web/all): Android/iOS
  3. react: 18.2.0, react-native: 0.71.4
  4. Expo Workflow: managed 2.28

React new architecture and automatic batching have been available for react/react-native versions (mentioned in 3 above). Yet not available in Expo Go (4 above).

I’m interested in "automatic batching” since I have many setState used in my components.
My test results on rendering performance tell me below differences:

  1. Expo Go - test environment (slow, and no automatic batching, render on every setState)
  2. App built - production enironment (fast, just 30% time of that used in Expo Go)

But I don’t know whether “automatic batching” has been enabled in case 2 above.
Or whether faster rendering is because automatic batching or new architecture…or because some other reasons?

The answer is quite important for decision to optimize performance in Expo Go…
Anybody know or with some advice to share. Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.