From 6eb808ca2ca3bcfef338519e184f3deef55da6c6 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Tue, 8 Oct 2024 16:41:19 -0700 Subject: [PATCH] state.js: more reliable isStateful detection --- reflex/.templates/web/utils/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/.templates/web/utils/state.js b/reflex/.templates/web/utils/state.js index d73f020d5..bc64c6c24 100644 --- a/reflex/.templates/web/utils/state.js +++ b/reflex/.templates/web/utils/state.js @@ -119,7 +119,7 @@ export const isStateful = () => { if (event_queue.length === 0) { return false; } - return event_queue.some(event => event.name.includes("___")); + return event_queue.some(event => event.name.startsWith(main_state_name)); }; /**