mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(core): Promote afterNextRender to stable. (#60792)
`afterRender` will not be promoted and is on its way out. PR Close #60792
This commit is contained in:
parent
cda922d480
commit
7b8c2fa2b2
2 changed files with 4 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ export const enum AfterRenderPhase {
|
|||
/**
|
||||
* A callback that runs after render.
|
||||
*
|
||||
* @developerPreview
|
||||
* @publicApi
|
||||
*/
|
||||
export interface AfterRenderRef {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {DestroyRef} from '../../linker/destroy_ref';
|
|||
import {performanceMarkFeature} from '../../util/performance';
|
||||
import {assertNotInReactiveContext} from '../reactivity/asserts';
|
||||
import {ViewContext} from '../view_context';
|
||||
import {AfterRenderPhase, AfterRenderRef} from './api';
|
||||
import {AfterRenderRef} from './api';
|
||||
import {
|
||||
AfterRenderHooks,
|
||||
AfterRenderImpl,
|
||||
|
|
@ -35,7 +35,7 @@ export type ɵFirstAvailable<T extends unknown[]> = T extends [infer H, ...infer
|
|||
/**
|
||||
* Options passed to `afterRender` and `afterNextRender`.
|
||||
*
|
||||
* @developerPreview
|
||||
* @publicApi
|
||||
*/
|
||||
export interface AfterRenderOptions {
|
||||
/**
|
||||
|
|
@ -365,7 +365,7 @@ export function afterNextRender<E = never, W = never, M = never>(
|
|||
* }
|
||||
* ```
|
||||
*
|
||||
* @developerPreview
|
||||
* @publicApi
|
||||
*/
|
||||
export function afterNextRender(
|
||||
callback: VoidFunction,
|
||||
|
|
|
|||
Loading…
Reference in a new issue