Skip to content

Commit 9dd3e3d

Browse files
committed
2 parents 22b5d89 + 9bd62cf commit 9dd3e3d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPRAG Copilot Instructions
2+
3+
This project uses SPRAG. Keep code aligned with the framework:
4+
5+
- `Controller.load()` reads route data.
6+
- `@action` methods handle server mutations.
7+
- Browser `Module` code calls `self.call_action("name", payload)`.
8+
- `Screen.render()` and `Component.render()` return `ui.*` trees.
9+
- Shared stores are declared with `store("name", initial={...})`.
10+
- Server-to-browser updates use `emit_socket(...)` or `emit_socket_refetch(...)`.
11+
12+
Keep server code out of browser-only classes and helpers. Use the existing `app/routes/**` file layout when adding features.

0 commit comments

Comments
 (0)