Sfoglia il codice sorgente

fix import clash between connectionToaster and hooks.useState (#3749)

Thomas Brandého 9 mesi fa
parent
commit
0eff63eed4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      reflex/experimental/hooks.py

+ 1 - 1
reflex/experimental/hooks.py

@@ -7,7 +7,7 @@ from reflex.vars import Var, VarData
 
 
 def _compose_react_imports(tags: list[str]) -> dict[str, list[ImportVar]]:
-    return {"react": [ImportVar(tag=tag, install=False) for tag in tags]}
+    return {"react": [ImportVar(tag=tag) for tag in tags]}
 
 
 def const(name, value) -> Var: