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

dva.hasModel ( model | namespace ) #468

Closed
kulwe opened this issue Jan 5, 2017 · 5 comments
Closed

dva.hasModel ( model | namespace ) #468

kulwe opened this issue Jan 5, 2017 · 5 comments

Comments

@kulwe
Copy link

kulwe commented Jan 5, 2017

升级1.2.0后发现model冲突,代码中有一些动态加载的模块依赖某个全局公用的model,这个model可能会在app启动时预加载,也可能会被其他模块提前加载。期望能提供hasModel来检测是否已经加载

@sorrycc
Copy link
Member

sorrycc commented Jan 5, 2017

这周没时间了,下周我会好好考虑下这个问题,看来大家用 dynamic router 还是挺多的。

@jokemmy
Copy link

jokemmy commented Jan 10, 2017

刚 dva@1.1.0 版本升级到 1.2.1 悲剧了, 有共用 model 的按需加载歇菜了

@ityao
Copy link

ityao commented Jan 10, 2017

加油, 加油, @sorrycc 赶紧加上, 或者在dva.model那自动判断已经加载过没有

@sorrycc
Copy link
Member

sorrycc commented Jan 10, 2017

@xutou12 先用 dva@1.1 吧,按需加载我需要找时间好好看看。

@sorrycc
Copy link
Member

sorrycc commented Jan 22, 2017

对动态加载的问题总结了下,有问题在 #533 里跟进。

@sorrycc sorrycc closed this as completed Jan 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants