Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/react/runtime/src/lifecycle/patch/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function replaceCommitHook(): void {
id: commitTaskId,
};
// TODO: check all fields in `flushOptions` from runtime3
if (snapshotPatch?.length) {
if (snapshotPatch.length) {
patch.snapshotPatch = snapshotPatch;
}
const patchList: PatchList = {
Expand All @@ -162,7 +162,7 @@ function replaceCommitHook(): void {
if (!isEmptyObject(flushOptions)) {
patchList.flushOptions = flushOptions;
}
if (snapshotPatch && delayedRunOnMainThreadData.length) {
if (delayedRunOnMainThreadData.length) {
patchList.delayedRunOnMainThreadData = takeDelayedRunOnMainThreadData();
}
const obj = commitPatchUpdate(patchList, patchOptions);
Expand Down
3 changes: 0 additions & 3 deletions packages/react/runtime/src/snapshot/backgroundSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ export class BackgroundSnapshotInstance {
let node = this.__firstChild;
while (node) {
nodes.push(node);
if (node === this.__lastChild) {
break;
}
node = node.__nextSibling;
}
return nodes;
Expand Down
Loading