From 43220438b60e65f3240265397924690801af7335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brand=C3=A9ho?= Date: Thu, 27 Jul 2023 20:02:09 +0200 Subject: [PATCH] update templates to remove deprecation warning (#1437) --- reflex/.templates/apps/counter/counter.py | 2 +- reflex/.templates/apps/default/default.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/.templates/apps/counter/counter.py b/reflex/.templates/apps/counter/counter.py index 8a8a0c302..5bf2ab4ae 100644 --- a/reflex/.templates/apps/counter/counter.py +++ b/reflex/.templates/apps/counter/counter.py @@ -48,6 +48,6 @@ def index() -> rx.Component: # Add state and page to the app. -app = rx.App(state=State) +app = rx.App() app.add_page(index, title="Counter") app.compile() diff --git a/reflex/.templates/apps/default/default.py b/reflex/.templates/apps/default/default.py index 761b246de..da4e43e4d 100644 --- a/reflex/.templates/apps/default/default.py +++ b/reflex/.templates/apps/default/default.py @@ -40,6 +40,6 @@ def index() -> rx.Component: # Add state and page to the app. -app = rx.App(state=State) +app = rx.App() app.add_page(index) app.compile()