closing a dialog after using signal store

Discussão em 'Angular' iniciado por Ken, Fevereiro 8, 2025.

  1. Ken

    Ken Guest

    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.

    Continue reading...

Compartilhe esta Página