Skip to content

Commit 0bdc548

Browse files
authored
Fix InitialProps (#14620)
* Fix InitialProps * Change files
1 parent a4e227e commit 0bdc548

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Fix InitialProps",
4+
"packageName": "react-native-windows",
5+
"email": "30809111+acoates-ms@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ void ReactNativeIsland::ShowInstanceLoaded() noexcept {
581581
m_rootTag = ::Microsoft::ReactNative::getNextRootViewTag();
582582

583583
auto initProps =
584-
m_props.isNull() ? m_props : DynamicWriter::ToDynamic(Mso::Copy(m_reactViewOptions.InitialProps()));
584+
m_props.isNull() ? DynamicWriter::ToDynamic(Mso::Copy(m_reactViewOptions.InitialProps())) : m_props;
585585
if (initProps.isNull()) {
586586
initProps = folly::dynamic::object();
587587
}

0 commit comments

Comments
 (0)