diff --git a/packages/myreact-dom/package.json b/packages/myreact-dom/package.json index 6e84dad2..14a2a15d 100644 --- a/packages/myreact-dom/package.json +++ b/packages/myreact-dom/package.json @@ -90,10 +90,10 @@ "react-dom client" ], "devDependencies": { - "@my-react/react-shared": "^0.2.8", - "@my-react/react-reconciler": "^0.2.8" + "@my-react/react-shared": "^0.2.9", + "@my-react/react-reconciler": "^0.2.9" }, "peerDependencies": { - "@my-react/react": ">=0.2.8" + "@my-react/react": ">=0.2.9" } } diff --git a/packages/myreact-jsx/package.json b/packages/myreact-jsx/package.json index b2912a58..a75902ef 100644 --- a/packages/myreact-jsx/package.json +++ b/packages/myreact-jsx/package.json @@ -38,9 +38,9 @@ ] }, "devDependencies": { - "@my-react/react-shared": "^0.2.8" + "@my-react/react-shared": "^0.2.9" }, "peerDependencies": { - "@my-react/react": ">=0.2.8" + "@my-react/react": ">=0.2.9" } } diff --git a/packages/myreact-reactivity/package.json b/packages/myreact-reactivity/package.json index f4a2ba26..f2fde0ed 100644 --- a/packages/myreact-reactivity/package.json +++ b/packages/myreact-reactivity/package.json @@ -49,9 +49,9 @@ ] }, "devDependencies": { - "@my-react/react-shared": "^0.2.8" + "@my-react/react-shared": "^0.2.9" }, "peerDependencies": { - "@my-react/react": ">=0.2.8" + "@my-react/react": ">=0.2.9" } } diff --git a/packages/myreact-reconciler/package.json b/packages/myreact-reconciler/package.json index bb988b88..ed92b605 100644 --- a/packages/myreact-reconciler/package.json +++ b/packages/myreact-reconciler/package.json @@ -36,9 +36,9 @@ ] }, "devDependencies": { - "@my-react/react-shared": "^0.2.8" + "@my-react/react-shared": "^0.2.9" }, "peerDependencies": { - "@my-react/react": ">=0.2.8" + "@my-react/react": ">=0.2.9" } } diff --git a/packages/myreact-reconciler/src/renderMount/feature.ts b/packages/myreact-reconciler/src/renderMount/feature.ts index 1ec4a2e1..0e71e77a 100644 --- a/packages/myreact-reconciler/src/renderMount/feature.ts +++ b/packages/myreact-reconciler/src/renderMount/feature.ts @@ -20,10 +20,10 @@ export const mount = (fiber: MyReactFiberNode, renderDispatch: CustomRenderDispa renderDispatch.pendingCommitFiberList = null; - renderDispatch.reconcileCommit(fiber, hydrate); - __DEV__ && enableScopeTreeLog.current && resetLogScope(); + renderDispatch.reconcileCommit(fiber, hydrate); + renderDispatch.isAppMounted = true; globalLoop.current = false; @@ -59,10 +59,10 @@ export const mountAsync = async (fiber: MyReactFiberNode, renderDispatch: Custom renderDispatch.pendingCommitFiberList = null; - renderDispatch.reconcileCommit(fiber, hydrate); - __DEV__ && enableScopeTreeLog.current && resetLogScope(); + renderDispatch.reconcileCommit(fiber, hydrate); + renderDispatch.isAppMounted = true; globalLoop.current = false; diff --git a/packages/myreact-refresh-tools/package.json b/packages/myreact-refresh-tools/package.json index 1a935204..6a35628f 100644 --- a/packages/myreact-refresh-tools/package.json +++ b/packages/myreact-refresh-tools/package.json @@ -59,7 +59,7 @@ } ], "devDependencies": { - "@my-react/react-shared": "^0.2.8" + "@my-react/react-shared": "^0.2.9" }, "peerDependenciesMeta": { "webpack": { @@ -67,7 +67,7 @@ } }, "peerDependencies": { - "@my-react/react-refresh": ">=0.2.8", + "@my-react/react-refresh": ">=0.2.9", "webpack": "^4 || ^5" } } diff --git a/packages/myreact-refresh/package.json b/packages/myreact-refresh/package.json index 68753518..b8fbd0f9 100644 --- a/packages/myreact-refresh/package.json +++ b/packages/myreact-refresh/package.json @@ -52,11 +52,11 @@ } ], "devDependencies": { - "@my-react/react-shared": "^0.2.8", - "@my-react/react-reconciler": "^0.2.8" + "@my-react/react-shared": "^0.2.9", + "@my-react/react-reconciler": "^0.2.9" }, "peerDependencies": { - "@my-react/react": ">=0.2.8", - "@my-react/react-dom": ">=0.2.8" + "@my-react/react": ">=0.2.9", + "@my-react/react-dom": ">=0.2.9" } } diff --git a/packages/myreact-terminal/package.json b/packages/myreact-terminal/package.json index 821e18a5..dbdeed7f 100644 --- a/packages/myreact-terminal/package.json +++ b/packages/myreact-terminal/package.json @@ -59,8 +59,8 @@ "yoga-wasm-web": "^0.3.3" }, "devDependencies": { - "@my-react/react-shared": "^0.2.8", - "@my-react/react-reconciler": "^0.2.8", + "@my-react/react-shared": "^0.2.9", + "@my-react/react-reconciler": "^0.2.9", "@types/lodash": "^4.14.202", "@types/signal-exit": "^3.0.1", "@types/slice-ansi": "^5.0.0", @@ -68,6 +68,6 @@ "@types/wrap-ansi": "^8.0.1" }, "peerDependencies": { - "@my-react/react": ">=0.2.8" + "@my-react/react": ">=0.2.9" } } diff --git a/packages/myreact-vite/package.json b/packages/myreact-vite/package.json index b79ae7d1..76ebdeb2 100644 --- a/packages/myreact-vite/package.json +++ b/packages/myreact-vite/package.json @@ -57,7 +57,7 @@ } ], "peerDependencies": { - "@my-react/react-refresh": ">=0.2.8", + "@my-react/react-refresh": ">=0.2.9", "vite": "^4.2.0 || ^5.0.0" }, "dependencies": { diff --git a/packages/myreact/package.json b/packages/myreact/package.json index 066dcb51..0a5a948b 100644 --- a/packages/myreact/package.json +++ b/packages/myreact/package.json @@ -54,9 +54,9 @@ "react like" ], "dependencies": { - "@my-react/react-jsx": "^0.2.8" + "@my-react/react-jsx": "^0.2.9" }, "devDependencies": { - "@my-react/react-shared": "^0.2.8" + "@my-react/react-shared": "^0.2.9" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1dc4f825..cac59d26 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,83 +123,83 @@ importers: packages/myreact: dependencies: '@my-react/react-jsx': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-jsx devDependencies: '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-dom: dependencies: '@my-react/react': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact devDependencies: '@my-react/react-reconciler': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-reconciler '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-jsx: dependencies: '@my-react/react': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact devDependencies: '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-reactivity: dependencies: '@my-react/react': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact devDependencies: '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-reconciler: dependencies: '@my-react/react': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact devDependencies: '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-refresh: dependencies: '@my-react/react': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact '@my-react/react-dom': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact-dom devDependencies: '@my-react/react-reconciler': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-reconciler '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-refresh-tools: dependencies: '@my-react/react-refresh': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact-refresh webpack: specifier: ^4 || ^5 version: 5.88.1(@swc/core@1.3.101) devDependencies: '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared packages/myreact-shared: {} @@ -207,7 +207,7 @@ importers: packages/myreact-terminal: dependencies: '@my-react/react': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact ansi-escapes: specifier: ^6.2.0 @@ -265,10 +265,10 @@ importers: version: 0.3.3 devDependencies: '@my-react/react-reconciler': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-reconciler '@my-react/react-shared': - specifier: ^0.2.8 + specifier: ^0.2.9 version: link:../myreact-shared '@types/lodash': specifier: ^4.14.202 @@ -298,7 +298,7 @@ importers: specifier: ^7.22.5 version: 7.22.5(@babel/core@7.22.5) '@my-react/react-refresh': - specifier: '>=0.2.8' + specifier: '>=0.2.9' version: link:../myreact-refresh vite: specifier: ^4.2.0 || ^5.0.0