GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • forwardRef

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — resolveForwardRef • Angular

API

function resolveForwardRef<T>(type: T): T;
@paramtypeT
@returnsT

Description

Lazily retrieves the reference value from a forwardRef.

Acts as the identity function when given a non-forward-ref value.

Usage Notes

Example

const ref = forwardRef(() => 'refValue');
      expect(resolveForwardRef(ref as any)).toEqual('refValue');
      expect(resolveForwardRef('regularValue')).toEqual('regularValue');
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.