Comments (4)
v3之前出过一个 useDefined
的钩子,文档在这。不知道是不是你想要的。v3删掉是因为这个名字太难听了,但是我今天想起一个更贴切的名字useIsolate
from foca.
嗯 我之前确实看到有useDefine, 3.0.0之后看您删掉了, 还以为有更好的方案
看了您的源代码, modelStore有个removeReducer方法, 调用之后已经可以手动卸载掉不用的reducer了, 我觉得还挺方便的, 由于对ts不太熟, 看您后续有没有计划能放出手动卸载的方法, 还是挺实用的
from foca.
手动卸载不是一个好办法,我打算在 v3.2 版本把这个功能加回来并重新取名useIsolate
。另外如果你对这个钩子有其它的建议也可以畅所欲言
from foca.
已发布 v3.2.0 。有任何问题请随时告诉我
from foca.
Related Issues (20)
- Cannot find namespace 'NodeJS' HOT 3
- tarojs/components 组件标红! HOT 9
- add support of undefined type in initialState HOT 4
- 如何在modelA里访问modelB的数据? HOT 4
- 使用时出现action in action的小问题 1.0.0 HOT 23
- 一定要在 effects 中使用 this.setState 或者 先定义 actions 方法调用才能更新状态吗 HOT 6
- 关于持久化的版本号 HOT 7
- 多个loading的情况 HOT 1
- [New Feature]是不是可以增加一个即用即创建的功能 HOT 6
- [Improvement] reset的特性无需深拷贝 HOT 3
- [New Feature]响应式 支持对复杂对象的支持 HOT 2
- initialState参数很多,如何一次性setState更新? HOT 3
- actions,异步actions, reducer, methods, computed, watch 名称叫法 HOT 1
- 如何动态删除指定的缓存? HOT 1
- foca 2.0 规划
- 持久化没有把initvalue放进去 HOT 3
- onInit不会触发useLoading HOT 2
- taro 支付宝小程序不支持吗? HOT 9
- foca2 在低版本的手机有兼容问题,iphone6和部分oppo HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foca.