Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(actions$: Actions, toast: ToastService) {
actions$
.pipe(
ofEntityOp(),
filter(
(ea: EntityAction) =>
ea.payload.entityOp.endsWith(OP_SUCCESS) ||
ea.payload.entityOp.endsWith(OP_ERROR)
)
)
// this service never dies so no need to unsubscribe
.subscribe(action =>
toast.openSnackBar(
`${action.payload.entityName} action`,
action.payload.entityOp
)
);
actions$
.pipe(