Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 19a2989

Browse files
Fix dictionary syntax in code examples to resolve flexdown parser error
Co-Authored-By: Alek Petuskey <alek@pynecone.io>
1 parent 0b254fa commit 19a2989

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/api-reference/event_triggers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ SYNTHETIC_EVENTS = [
110110
# Simulate API call
111111
import asyncio
112112
await asyncio.sleep(1)
113-
self.data = [{"id": 1, "name": "Item 1"}, {"id": 2, "name": "Item 2"}]
113+
self.data = [dict(id=1, name="Item 1"), dict(id=2, name="Item 2")]
114114
self.loading = False
115115
""",
116116
"example": """rx.vstack(
@@ -336,7 +336,7 @@ async def load_data(self):
336336
# Perform long operation
337337
await asyncio.sleep(1)
338338

339-
self.data = [{"id": 1, "name": "Item 1"}]
339+
self.data = [dict(id=1, name="Item 1")]
340340
self.loading = False
341341
# Final update: Hide spinner and show data
342342
```

0 commit comments

Comments
 (0)