最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - closing a dialog after using signal store - Stack Overflow

programmeradmin1浏览0评论

Is there any concern to close a dialog imediately after calling an RxMethod on my signal store to do a databse update?

The dialog is holding the injected store variable. Seems like it should be fine, but maybe there could be something that would cause the the store method not to run.

Is there a reason to prefer passing the update entity data back to the component that opened the dialog while closing the dialog (ex dialogref.close({msg:'update', data:updatedWidget}) Then I could subscribe to the dialog close event and call the signal store from there.

发布评论

评论列表(0)

  1. 暂无评论