
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@angular-kit/effects
Advanced tools
Powerful Angular extensions to handle subscriptions and side effects automatically in the background.
Tooling to handle your effects (subscriptions)!
npm install @angular-kit/effects
rxEffectrxEffect is a standalone convenience function to take care of a subscription and
execute side effects.
You can run a single effect
const intervalEffect = rxEffect().run(interval(1000), console.log)
// or
const effects = rxEffect();
logEffect = this.effects.run(...)
Or create a group of effects:
const effects = rxEffect(({register}) => {
register(interval(1000), v => console.log(v))
// register more effects
})
Note that you need to use rxEffect within an injection context. If you want to
use it outside an injection context you can pass the Ìnjector as argument.
runOnInstanceDestroy- Run code when the rxEffect instance is destroyedWhen a rxEffect-instance is destroyed you can execute code which is registered in the runOnInstanceDestroy-hook.
runOnInstanceDestroy is executed whenever the repsective DestroyRef.onDestroy-callback is executed.
Example for standalone function
const effects = rxEffect()
effects.runOnInstanceDestroy(() => // do something e.g. interact with local storage)
Example for factory function
const effects = rxEffect(({runOnInstanceDestroy}) => {
runOnInstanceDestroy(() =>
// do something e.g. interact with local storage
)
})
When creating an effect:
const effects = rxEffect()
const logEffect = effects.run(of(1), console.log)
You can optionally specify a callback which is executed one time if either cleanUp() is called on this single
effect or the DestroyRef.onDestroy()-callback iun the current scope executed. Whatever comes first will be executed.
You do this by:
const effects = rxEffect()
const logEffect = effects.run(of(1), console.log, {onCleanUp: () => {}})
rxEffectYou can call cleanUp() on the rxEffect instance to destroy the instance.
When creating an effect:
const effects = rxEffect()
const logEffect = effects.run(of(1), console.log)
You get a EffectCleanUpRef which exposes a cleanUp-function. You can call this function and
destroy this single effect.
FAQs
Powerful Angular extensions to handle subscriptions and side effects automatically in the background.
We found that @angular-kit/effects demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.