Skip to content

Commit 7388617

Browse files
authored
apps should no longer call "app.compile()" (reflex-dev#2291)
1 parent 3c07537 commit 7388617

35 files changed

Lines changed: 62 additions & 52 deletions

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def index():
123123
# Add state and page to the app.
124124
app = rx.App()
125125
app.add_page(index, title="reflex:DALL·E")
126-
app.compile()
127126
```
128127

129128
## Let's break this down.

‎docs/es/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def index():
121121
# Add state and page to the app.
122122
app = rx.App()
123123
app.add_page(index, title="reflex:DALL·E")
124-
app.compile()
125124
```
126125

127126
## Vamos a desglosarlo.
@@ -191,7 +190,6 @@ Añadimos una página desde la raíz (root) de la aplicación al componente de
191190

192191
```python
193192
app.add_page(index, title="DALL-E")
194-
app.compile()
195193
```
196194

197195
Puedes crear una aplicación multipágina añadiendo más páginas.

‎docs/in/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ def index():
120120
# Add state and page to the app.
121121
app = rx.App()
122122
app.add_page(index, title="reflex:DALL·E")
123-
app.compile()
124123
```
125124

126125
## चलो इसे विस्तार से देखते हैं।
@@ -190,7 +189,6 @@ app = rx.App()
190189

191190
```python
192191
app.add_page(index, title="DALL-E")
193-
app.compile()
194192
```
195193

196194
आप और पेज जोड़कर एक मल्टी-पेज एप्लिकेशन बना सकते हैं।

‎docs/it/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def index():
121121
# Aggiungi stato e pagina all'app.
122122
app = rx.App()
123123
app.add_page(index, title="reflex:DALL·E")
124-
app.compile()
125124
```
126125

127126
## Analizziamolo
@@ -191,7 +190,6 @@ Possiamo aggiungere una pagina dalla radice dell'app al componente dell'indice.A
191190

192191
```python
193192
app.add_page(index, title="DALL-E")
194-
app.compile()
195193
```
196194

197195
Puoi creare un'app multi-pagina aggiungendo altre pagine.

‎docs/kr/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def index():
121121
# Add state and page to the app.
122122
app = rx.App()
123123
app.add_page(index, title="reflex:DALL·E")
124-
app.compile()
125124
```
126125

127126
## 하나씩 살펴보겠습니다.
@@ -194,7 +193,6 @@ app = rx.App()
194193

195194
```python
196195
app.add_page(index, title="DALL-E")
197-
app.compile()
198196
```
199197

200198
여러 페이지를 추가하여 ��티 페이지 앱을 만들 수 있습니다.

‎docs/pt/pt_br/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def index():
121121
# Adição do estado e da página no app.
122122
app = rx.App()
123123
app.add_page(index, title="reflex:DALL·E")
124-
app.compile()
125124
```
126125

127126
## Vamos por partes.
@@ -192,7 +191,6 @@ Adicionamos uma página na raíz do app, apontando para o componente index. Tamb
192191

193192
```python
194193
app.add_page(index, title="DALL-E")
195-
app.compile()
196194
```
197195

198196
Você pode criar mais páginas e adicioná-las ao seu app.

‎docs/tr/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ def index():
124124
# Sayfa ve durumu uygulamaya ekleyin.
125125
app = rx.App()
126126
app.add_page(index, title="reflex:DALL·E")
127-
app.compile()
128127
```
129128

130129
## Daha Detaylı İceleyelim
@@ -194,7 +193,6 @@ Uygulamamızın kök dizinine index bileşeninden bir sayfa ekliyoruz. Ayrıca s
194193

195194
```python
196195
app.add_page(index, title="DALL-E")
197-
app.compile()
198196
```
199197

200198
Daha fazla sayfa ekleyerek çok sayfalı bir uygulama oluşturabilirsiniz.

‎docs/zh/zh_cn/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def index():
122122
# Add state and page to the app.
123123
app = rx.App()
124124
app.add_page(index, title="reflex:DALL·E")
125-
app.compile()
126125
```
127126

128127
## 让我们分解以上步骤.
@@ -194,7 +193,6 @@ app = rx.App()
194193

195194
```python
196195
app.add_page(index, title="DALL-E")
197-
app.compile()
198196
```
199197

200198
您可以通过增加更多页面来创建一个多页面的应用.

‎docs/zh/zh_tw/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def index():
121121
# 把狀態跟頁面添加到應用程式。
122122
app = rx.App()
123123
app.add_page(index, title="reflex:DALL·E")
124-
app.compile()
125124
```
126125

127126
## 讓我們來拆解一下。
@@ -192,7 +191,6 @@ app = rx.App()
192191

193192
```python
194193
app.add_page(index, title="DALL-E")
195-
app.compile()
196194
```
197195

198196
你可以添加更多頁面至路由藉此來建立多頁面應用程式(multi-page app)

‎integration/test_background_task.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def index() -> rx.Component:
9595

9696
app = rx.App(state=rx.State)
9797
app.add_page(index)
98-
app.compile()
9998

10099

101100
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)