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

Function useWarnIfChanges

src/WebView.macos.tsx:19–25  ·  view source on GitHub ↗
(value: T, name: string)

Source from the content-addressed store, hash-verified

17
18// oxlint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
19const useWarnIfChanges = <T extends unknown>(value: T, name: string) => {
20 const ref = useRef(value);
21 if (ref.current !== value) {
22 console.warn(`Changes to property ${name} do nothing after the initial render.`);
23 ref.current = value;
24 }
25};
26
27const WebViewComponent = forwardRef<unknown, MacOSWebViewProps>(
28 (

Callers 1

WebView.macos.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…