Code Monkey home page Code Monkey logo

Comments (4)

geekact avatar geekact commented on September 23, 2024

v3之前出过一个 useDefined的钩子,文档在这。不知道是不是你想要的。v3删掉是因为这个名字太难听了,但是我今天想起一个更贴切的名字useIsolate

from foca.

d380025303 avatar d380025303 commented on September 23, 2024

嗯 我之前确实看到有useDefine, 3.0.0之后看您删掉了, 还以为有更好的方案
看了您的源代码, modelStore有个removeReducer方法, 调用之后已经可以手动卸载掉不用的reducer了, 我觉得还挺方便的, 由于对ts不太熟, 看您后续有没有计划能放出手动卸载的方法, 还是挺实用的

from foca.

geekact avatar geekact commented on September 23, 2024

手动卸载不是一个好办法,我打算在 v3.2 版本把这个功能加回来并重新取名useIsolate。另外如果你对这个钩子有其它的建议也可以畅所欲言

from foca.

geekact avatar geekact commented on September 23, 2024

已发布 v3.2.0 。有任何问题请随时告诉我

from foca.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.