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
// Mutates the prop in order to clean up the memory associated with the subTreeData as it is now part of the cache.
287
+
childProp.current=null
288
+
}
289
+
}else{
281
290
// Add the segment's subTreeData to the cache.
282
291
// This writes to the cache when there is no item in the cache yet. It never *overwrites* existing cache items which is why it's safe in concurrent mode.
283
292
childNodes.set(cacheKey,{
@@ -286,15 +295,10 @@ function InnerLayoutRouter({
286
295
subTreeData: childProp.current,
287
296
parallelRoutes: newMap(),
288
297
})
298
+
// Mutates the prop in order to clean up the memory associated with the subTreeData as it is now part of the cache.
299
+
childProp.current=null
289
300
// In the above case childNode was set on childNodes, so we have to get it from the cacheNodes again.
0 commit comments