| 24 | * Look at the individual properties for alternatives. |
| 25 | */ |
| 26 | export interface IObserverOptions { |
| 27 | /** |
| 28 | * @deprecated Pass a `React.forwardRef` component to observer instead of using the options object |
| 29 | * e.g. `observer(React.forwardRef(fn))` |
| 30 | */ |
| 31 | readonly forwardRef?: boolean |
| 32 | } |
| 33 | |
| 34 | export function observer<P extends object, TRef = {}>( |
| 35 | baseComponent: React.ForwardRefRenderFunction<TRef, P>, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…