Skip to content

Commit d771e7e

Browse files
Fix CI failures by preventing async examples from executing during tests
Co-Authored-By: Alek Petuskey <alek@pynecone.io>
1 parent 40d7f39 commit d771e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/vars/computed_vars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Async computed vars are useful for operations that require asynchronous processi
102102
- File I/O operations
103103
- Any other operations that benefit from async/await
104104

105-
```python demo exec
105+
```python demo
106106
class AsyncVarState(rx.State):
107107
count: int = 0
108108

@@ -134,7 +134,7 @@ When the count changes, the async computed var is automatically recomputed.
134134
Just like regular computed vars, async computed vars can also be cached. This is especially
135135
useful for expensive async operations like API calls or database queries.
136136

137-
```python demo exec
137+
```python demo
138138
class AsyncCachedVarState(rx.State):
139139
user_id: int = 1
140140
refresh_trigger: int = 0

0 commit comments

Comments
 (0)