Skip to content

Commit 3ec7dd8

Browse files
committed
remove hook
1 parent 7f4d2ac commit 3ec7dd8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

reflex/constants/compiler.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,6 @@ class Hooks(SimpleNamespace):
136136
"""Common sets of hook declarations."""
137137

138138
EVENTS = f"const [{CompileVars.ADD_EVENTS}, {CompileVars.CONNECT_ERROR}] = useContext(EventLoopContext);"
139-
AUTOFOCUS = """
140-
// Set focus to the specified element.
141-
const focusRef = useRef(null)
142-
useEffect(() => {
143-
if (focusRef.current) {
144-
focusRef.current.focus();
145-
}
146-
})"""
147139

148140
class HookPosition(enum.Enum):
149141
"""The position of the hook in the component."""

0 commit comments

Comments
 (0)