Skip to content

Commit f050374

Browse files
authored
more auto_reload_on_error patterns (#5925)
* Reload on `resolveDispatcher() is null` * Use a more correct pattern for firefox function -> null property access
1 parent fe0f946 commit f050374

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reflex/state.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,6 +2486,14 @@ class FrontendEventExceptionState(State):
24862486
),
24872487
re.compile(re.escape("TypeError: null is not an object")), # Safari
24882488
re.compile(r"TypeError: can't access property \".*\" of null"), # Firefox
2489+
# Firefox: property access is on a function that returns null.
2490+
re.compile(
2491+
re.escape("TypeError: can't access property \"")
2492+
+ r".*"
2493+
+ re.escape('", ')
2494+
+ r".*"
2495+
+ re.escape(" is null")
2496+
),
24892497
]
24902498

24912499
@event

0 commit comments

Comments
 (0)