从包装更改应用程序状态的最佳实践
我正在开发一个独立的软件包,该软件包当前在这样的应用程序中:app/packages/my_package 我使用创建命令软件包模板创建了软件包。
我想实现的是在某些事件中触发应用程序中的状态变化,例如,在听流并获取特定对象(在软件包中)时,我想触发应用程序中的某些状态变化,例如,让它知道它可以停止加载并“传递”读取对象。
我觉得有几种实施此操作的方法,您能为这种情况提出一些好的方法和州管理工具/技术吗?
I'm developing a standalone package which is currently inside an app like this: app/packages/my_package
I created the package with the create command package template.
What I'd like to achieve is to trigger state changes in the app from package during some events, for example while listening to a stream and getting a specific object (in the package) I'd like to trigger some state change in the app,, for example let it know that it can stop loading and "pass" the read object.
I have a feeling that there are several ways to implement this, can you suggest some good approaches and state management tools/techniques to for this scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论