(value: T, name: string)
| 30 | |
| 31 | // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint |
| 32 | const useWarnIfChanges = <T extends unknown>(value: T, name: string) => { |
| 33 | const ref = useRef(value); |
| 34 | if (ref.current !== value) { |
| 35 | console.warn(`Changes to property ${name} do nothing after the initial render.`); |
| 36 | ref.current = value; |
| 37 | } |
| 38 | }; |
| 39 | |
| 40 | const WebViewComponent = forwardRef<unknown, IOSWebViewProps>( |
| 41 | ( |
no outgoing calls
no test coverage detected
searching dependent graphs…