{{#let (hash data=data error=error persist=(action "persist") delete=(queue (action (mut data)) (action dispatch "REMOVE")) inflight=(state-matches state (array "persisting" "removing")) ) as |api|}} {{yield api}} {{#yield-slot name="removed" params=(block-params (component 'notification' after=(queue (action dispatch "RESET") (action ondelete))))}} {{yield api}} {{else}} {{/yield-slot}} {{#yield-slot name="persisted"}} {{yield api}} {{else}} {{/yield-slot}} {{#yield-slot name="error" params=(block-params (component 'notification' after=(action dispatch "RESET")))}} {{yield api}} {{else}} {{/yield-slot}} {{yield api}} {{/let}}