Giter Site home page Giter Site logo

vue3-source-analysis's Introduction

├─packages # 项目源代码包管理 ├─scripts # 打包配置

响应式原理
核心 effect effect 对应多个属性,一个属性对应多个effect 多对多关系 (vue2 watcher和dep 关系类似)
  - 1.先实例化一个new Proxy对象
  - 2.创建effect(核心)默认数据变化要更新,我们先将正在执行的 effect 作为全局变量,渲染(取值),我们在 Proxy 的get方法中进行依赖收集(track + trigger 相当于vue2的 watcher+dep),
  - 3.数据变化,触发属性 set 方法,查找对应的effect集合,找到effect全部执行

vue3-source-analysis's People

Contributors

wyk861417548 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.