Skip to content

Commit

Permalink
Use shared child elements
Browse files Browse the repository at this point in the history
  • Loading branch information
wayfarer3130 committed Jan 15, 2025
1 parent 94d13a4 commit ff19c65
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions platform/core/src/utils/combineFrameInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ const combineFrameInstance = (frame, instance) => {
value: { ...instance },
});
}
const sharedInstance =
instance._shared ||
createCombinedValue(instance._parentInstance, SharedFunctionalGroupsSequence?.[0], '_shared');
const sharedInstance = createCombinedValue(
instance._parentInstance,
SharedFunctionalGroupsSequence?.[0],
'_shared'
);
const newInstance = createCombinedValue(
sharedInstance,
PerFrameFunctionalGroupsSequence?.[frameNumber - 1],
Expand Down

0 comments on commit ff19c65

Please sign in to comment.