@bgub/fig-reconciler 0.1.0-alpha.1 → 0.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1799,16 +1799,18 @@ function createRenderer(host) {
1799
1799
  if (hasHiddenBoundaries) armRevealedHiddenBoundaries(finishedWork.child);
1800
1800
  commitEffects(root, finishedWork.child, 2);
1801
1801
  const commitHostChanges = () => {
1802
- if (root.clearContainerBeforeCommit) requireHydrationHostConfig().clearContainer(root.container);
1802
+ const recoveringHydration = root.clearContainerBeforeCommit;
1803
+ if (recoveringHydration) requireHydrationHostConfig().clearContainer(root.container);
1803
1804
  if (root.needsCommitDeletions) {
1804
1805
  commitDeletions(root);
1805
1806
  root.needsCommitDeletions = false;
1806
1807
  }
1807
- commitAssetResourceUpdates(root);
1808
+ if (!recoveringHydration) commitAssetResourceUpdates(root);
1808
1809
  commitDataDependencies(root);
1809
1810
  commitHostUpdates(root);
1810
1811
  commitMutationEffects(finishedWork.child);
1811
1812
  if (hasHiddenBoundaries) commitHiddenBoundaryVisibility(finishedWork.child);
1813
+ if (recoveringHydration) commitAssetResourceUpdates(root);
1812
1814
  root.clearContainerBeforeCommit = false;
1813
1815
  };
1814
1816
  const completeCommit = () => {