Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

deleteEffect

Generic types:T

This is the effect that handles deleting a row from the store.

Presentation

function deleteEffect(
  effectServiceToken: InjectionToken<EffectService<T>>,
  actions: ActionGroup<T>,
): (
  actions$?: Actions<any>,
  effectService?: EffectService<T>,
) => Observable<void>;

Returns

(actions$?: Actions<any>, effectService?: EffectService<T>) => Observable<void> -

The action to fire as a result of the delete, if any

Parameters

NameTypeDescription
effectServiceToken
InjectionToken<EffectService<T>>

token for the service that the user has provided to implement delete

actions
ActionGroup<T>

the action group that has the actions we can trigger and listen for