Skip to content

Commit fd91056

Browse files
authored
Merge pull request #43338 from badeggg/try3-fix-42916-loop-crash
2 parents e66ae37 + 092c86a commit fd91056

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hooks/useAutoFocusInput.ts

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export default function useAutoFocusInput(): UseAutoFocusInput {
4949

5050
const inputCallbackRef = (ref: TextInput | null) => {
5151
inputRef.current = ref;
52+
if (isInputInitialized) {
53+
return;
54+
}
5255
setIsInputInitialized(true);
5356
};
5457

0 commit comments

Comments
 (0)