Browse Source

update_forward_refs -> model_rebuild

Benedikt Bartscher 1 year ago
parent
commit
b65c34b212
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reflex/style.py

+ 1 - 1
reflex/style.py

@@ -10,7 +10,7 @@ from reflex.utils import format
 from reflex.utils.imports import ImportVar
 from reflex.vars import BaseVar, Var, VarData
 
-VarData.update_forward_refs()  # Ensure all type definitions are resolved
+VarData.model_rebuild(force=True)  # Ensure all type definitions are resolved
 
 LIGHT_COLOR_MODE: str = "light"
 DARK_COLOR_MODE: str = "dark"