Skip to content

Commit 9b01131

Browse files
Fix CI failures by using box parameter for async examples
Co-Authored-By: Alek Petuskey <[email protected]>
1 parent d771e7e commit 9b01131

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
105+
```python demo box
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
137+
```python demo box
138138
class AsyncCachedVarState(rx.State):
139139
user_id: int = 1
140140
refresh_trigger: int = 0

0 commit comments

Comments
 (0)