Liu Song’s Projects


~/Projects/fre

git clone https://code.lsong.org/fre

Commit

Commit
ccf3f5ef9e4e9ebf1949da25796cc18742cb505b
Author
yisar <[email protected]>
Date
2022-12-01 01:28:36 +0800 +0800
Diffstat
 src/reconcile.ts | 15 ++++-----------

simplify


diff --git a/src/reconcile.ts b/src/reconcile.ts
index 3cbf84cae1374cd6ce6684b9b4d07afa66be1331..08980aeb1f126a4b6a892aaa971d6ae7beee649f 100644
--- a/src/reconcile.ts
+++ b/src/reconcile.ts
@@ -15,8 +15,6 @@ import { commit } from './commit'
 
 let currentFiber: IFiber
 import {
-  FreNode,
-import {
   IEffect,
 
 export const enum LANE {
@@ -51,11 +49,6 @@ const reconcile = (wip?: IFiber): boolean => {
   while (wip && !shouldYield()) wip = capture(wip)
   if (wip) return reconcile.bind(null, wip)
   FC,
-  Attributes,
-    commit(finish)
-    finish = null
-  }
-  FC,
   IEffect,
 }
 
@@ -85,14 +78,14 @@   const sibling = getSibling(wip)
   return sibling
 }
 
-const getSibling = (wip) =>{
+const getSibling = (wip) => {
   while (wip) {
     bubble(wip)
-  FreNode,
+  HEAD = 1 << 6,
   FreNode,
-import {
+  IFiber,
-  FreNode,
   IFiber,
+    let scu = (wip.type as FC).shouldUpdate || shouldUpdate
       return null
     }
     if (wip.sibling) return wip.sibling