MCPcopy Index your code
hub / github.com/react-native-webview/react-native-webview / useWarnIfChanges

Function useWarnIfChanges

src/WebView.ios.tsx:32–38  ·  view source on GitHub ↗
(value: T, name: string)

Source from the content-addressed store, hash-verified

30
31// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
32const 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
40const WebViewComponent = forwardRef<unknown, IOSWebViewProps>(
41 (

Callers 1

WebView.ios.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…