docs: add frontend development guidelines
This commit is contained in:
3
.trellis/spec/frontend/state-management.md
Normal file
3
.trellis/spec/frontend/state-management.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# State Management
|
||||
|
||||
Use component `useState` for server state, selection, staged overrides, layer visibility and UI filters. `src/lib/api.ts` is the sole browser HTTP boundary. Keep staged overrides separate from persisted `WorkbenchState.overrides`; save them before compile.
|
||||
Reference in New Issue
Block a user