Small refactor to log state data during development (#36603)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36603

Small refactor to log state data during development for preallocation of items

Changelog: [Internal] Internal

Reviewed By: javache

Differential Revision: D44112419

fbshipit-source-id: 290fbf0db3ea3f9863e7c86249dd1e6943556baa
This commit is contained in:
David Vacca
2023-03-30 16:22:48 -07:00
committed by Facebook GitHub Bot
parent 8a18b53bcd
commit c76ab8d01d
@@ -82,7 +82,10 @@ public class PreAllocateViewMountItem implements MountItem {
.append(" props: ")
.append(mProps != null ? mProps : "<null>")
.append(" state: ")
.append(mStateWrapper != null ? mStateWrapper : "<null>");
.append(
mStateWrapper != null && mStateWrapper.getStateData() != null
? mStateWrapper.getStateData().toString()
: "<null>");
}
return result.toString();