Skip to content

Commit

Permalink
remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
developit authored Jan 3, 2024
1 parent fe0df55 commit b09f4c1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions compat/test/browser/useSyncExternalStore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,6 @@ describe('useSyncExternalStore', () => {
await act(() => {
store.set(1);
});
// // Preact logs differ from React here cuz of how we do rerendering. We
// // rerender subtrees and then commit effects so Child2 never sees the
// // update to 1 cuz Child1 rerenders and runs its layout effects first.
// assertLog([1, /*1,*/ 'Reset back to 0', 0, 0]);
assertLog([1, 1, 'Reset back to 0', 0, 0]);
expect(container.textContent).to.equal('00');
});
Expand Down
1 change: 0 additions & 1 deletion src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ function process() {
}
}
if (root) commitRoot(commitQueue, root, refQueue);
// if (root) commitRoot(commitQueue, root, refQueue);
process._rerenderCount = 0;
}

Expand Down
3 changes: 0 additions & 3 deletions src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ export function render(vnode, parentDom, replaceNode) {
refQueue
);

// Flush all queued effects
// vnode._nextDom = undefined;
// if (options._commit) options._commit(vnode, EMPTY_ARR);
vnode._nextDom = undefined;
commitRoot(commitQueue, vnode, refQueue);
}
Expand Down

0 comments on commit b09f4c1

Please sign in to comment.