Skip to content

inject实现 #11

Description

@challen03

看了下inject的功能,大致意思是将一个store属性注入到action里,有几个小问题想请求教下,为什么不把action和store放在一起,像mob state tree各个功能统一管理;
还有一点不太懂哈,我看了下injec的实现是将target的Symbol属性设置成一个map结构,通过给这个Set结构加属性来实现class的注入,这块debugger了很久,还是没看懂是怎么实现,能帮忙讲解一下吗~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions