function
Lazily retrieves the reference value from a forwardRef.
resolveForwardRef<T>(type: T): T
type | T |
T
Acts as the identity function when given a non-forward-ref value.
Further information available in the Usage Notes...
const ref = forwardRef(() => 'refValue'); expect(resolveForwardRef(ref as any)).toEqual('refValue'); expect(resolveForwardRef('regularValue')).toEqual('regularValue');
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/core/resolveForwardRef