You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// -----------------INITIALIZE OBJECT TO CONTAIN COMPONENT DATA---------------
117
118
letnewState: any|{hooksState?: any[]}={};
@@ -140,6 +141,7 @@ export default function createTree(
140
141
// check to see if the parent component has any state/props
141
142
if(
142
143
!nextJSDefaultComponent.has(componentName)&&
144
+
!remixDefaultComponents.has(componentName)&&
143
145
(tag===FunctionComponent||
144
146
tag===ClassComponent||
145
147
tag===IndeterminateComponent||
@@ -164,6 +166,7 @@ export default function createTree(
164
166
// Note: if user use ReactHook, memoizedState.memoizedState can be a falsy value such as null, false, ... => need to specify this data is not undefined
165
167
if(
166
168
!nextJSDefaultComponent.has(componentName)&&
169
+
!remixDefaultComponents.has(componentName)&&
167
170
(tag===FunctionComponent||tag===ClassComponent)&&
168
171
memoizedState?.memoizedState!==undefined
169
172
){
@@ -187,6 +190,7 @@ export default function createTree(
187
190
// TODO: need to render this context provider when user use useContext hook.
188
191
if(
189
192
!nextJSDefaultComponent.has(componentName)&&
193
+
!remixDefaultComponents.has(componentName)&&
190
194
tag===ContextProvider&&
191
195
!elementType._context.displayName
192
196
){
@@ -195,6 +199,7 @@ export default function createTree(
0 commit comments