Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inject实现 #11

Open
challen03 opened this issue Sep 25, 2019 · 0 comments
Open

inject实现 #11

challen03 opened this issue Sep 25, 2019 · 0 comments

Comments

@challen03
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant