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

Support model destroy #137

Closed
3 tasks done
sorrycc opened this issue Oct 9, 2016 · 1 comment
Closed
3 tasks done

Support model destroy #137

sorrycc opened this issue Oct 9, 2016 · 1 comment

Comments

@sorrycc
Copy link
Member

sorrycc commented Oct 9, 2016

In some cases, we need to destroy the model.

API

Consider using:

app.destroyModel(namespace);

or:

app.unmodel(namespace);

TODO

  • remove reducers
  • unsubscribe subscriptions
  • cancel effects
@bjwulin
Copy link

bjwulin commented Oct 11, 2016

@sorrycc ,每个增强,能不能留一个应用场景描述,便于每个使用dva的开发都了解新的特性是否需要在项目中采用。

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

2 participants