Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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(
ofType(
EntityCacheAction.SAVE_ENTITIES_SUCCESS,
EntityCacheAction.SAVE_ENTITIES_ERROR
)
)
.subscribe((action: any) =>
toast.openSnackBar(
`${action.type} - url: ${action.payload.url}`,
'SaveEntities'
)
);
}
}