Skip to content

Commit 2c6b697

Browse files
JeanMecheatscott
authored andcommitted
refactor(core): promote effect to stable. (angular#60773)
`effect` is promoted to stable in v20 PR Close angular#60773
1 parent ba79f23 commit 2c6b697

File tree

1 file changed

+0
-10
lines changed
  • packages/core/src/render3/reactivity

1 file changed

+0
-10
lines changed

packages/core/src/render3/reactivity/effect.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ import {emitEffectCreatedEvent, setInjectorProfilerContext} from '../debug/injec
3838

3939
/**
4040
* A global reactive effect, which can be manually destroyed.
41-
*
42-
* @developerPreview
4341
*/
4442
export interface EffectRef {
4543
/**
@@ -62,8 +60,6 @@ export class EffectRefImpl implements EffectRef {
6260

6361
/**
6462
* Options passed to the `effect` function.
65-
*
66-
* @developerPreview
6763
*/
6864
export interface CreateEffectOptions {
6965
/**
@@ -100,15 +96,11 @@ export interface CreateEffectOptions {
10096
* An effect can, optionally, register a cleanup function. If registered, the cleanup is executed
10197
* before the next effect run. The cleanup function makes it possible to "cancel" any work that the
10298
* previous effect run might have started.
103-
*
104-
* @developerPreview
10599
*/
106100
export type EffectCleanupFn = () => void;
107101

108102
/**
109103
* A callback passed to the effect function that makes it possible to register cleanup logic.
110-
*
111-
* @developerPreview
112104
*/
113105
export type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void;
114106

@@ -127,8 +119,6 @@ export type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void;
127119
* and have no connection to the component tree or change detection.
128120
*
129121
* `effect()` must be run in injection context, unless the `injector` option is manually specified.
130-
*
131-
* @developerPreview
132122
*/
133123
export function effect(
134124
effectFn: (onCleanup: EffectCleanupRegisterFn) => void,

0 commit comments

Comments
 (0)