Skip to content

Commit f8c3cb7

Browse files
fix: resolve React 19 TypeScript compatibility in modernjs package
- Fix useRef() call to provide initial value for React 19 compatibility - Resolves 'Expected 1 arguments, but got 0' TypeScript error - Ensures all 35 packages build successfully 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e830261 commit f8c3cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bridge/bridge-react/src/lazy/AwaitDataFetch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function AwaitDataFetch<T>({
9191
params,
9292
delayLoading,
9393
}: AwaitProps<T>) {
94-
const dataRef = useRef<T>();
94+
const dataRef = useRef<T | undefined>(undefined);
9595
const data = dataRef.current || resolve;
9696
const getData = isPromise(data) ? fetchData(data, dataRef) : () => data;
9797

0 commit comments

Comments
 (0)