Skip to content

Commit

Permalink
feat: update file
Browse files Browse the repository at this point in the history
  • Loading branch information
okbug committed Apr 11, 2022
1 parent 182f6f6 commit 56b5245
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified learnWebpack/.DS_Store
Binary file not shown.
Binary file added learnWebpack/ast-demo/.DS_Store
Binary file not shown.
Binary file modified learnWebpack/my-webpack/.DS_Store
Binary file not shown.
Binary file added learnWebpack/webpack-analysis/.DS_Store
Binary file not shown.
28 changes: 28 additions & 0 deletions notes/vue3-source-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# setup执行的步骤
```ts
// packages/runtime-core/src/components.ts
function setupStatefulComponent(
instance: ComponentInternalInstance,
isSSR: boolean
) {
// 0. create render proxy property access cache
// 创建渲染代理属性连接缓存


// 1. create public instance / render proxy
// also mark it raw so it's never observed

// 创建公共实例或渲染代理
// 也标记它原生,未被代理过
instance.proxy = markRaw()


// 2. call setup()
const setupResult = setup();
// 2.1. return the promise so server-renderer can wait on it

// async setup returned Promise.
// bail here and wait for re-entry.
};
```

Binary file modified zf/.DS_Store
Binary file not shown.
Binary file added zf/jiagouke-vue2021/.DS_Store
Binary file not shown.
Binary file modified zf/zhufengwebpack202106/.DS_Store
Binary file not shown.
Binary file modified zf/zhufengwebpack202106/4.flow/.DS_Store
Binary file not shown.
Binary file modified zf/zhufengwebpack202111-master/.DS_Store
Binary file not shown.

0 comments on commit 56b5245

Please sign in to comment.