refactor(ivy): remove dependency on global state from isCreationMode (#31959)
PR Close #31959
This commit is contained in:

committed by
Alex Rickabaugh

parent
48a3741d5a
commit
9106271f2c
@ -158,6 +158,11 @@ export function readPatchedLView(target: any): LView|null {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** Checks whether a given view is in creation mode */
|
||||
export function isCreationMode(view: LView): boolean {
|
||||
return (view[FLAGS] & LViewFlags.CreationMode) === LViewFlags.CreationMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a boolean for whether the view is attached to the change detection tree.
|
||||
*
|
||||
|
Reference in New Issue
Block a user