mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-16 05:33:24 +00:00
docs(desktop): add Solid best practices guidance (#42211)
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
This commit is contained in:
parent
20197c6b8a
commit
33a1bd2e90
1 changed files with 1 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# Desktop package notes
|
||||
|
||||
- Follow Solid best practices, leave a comment when violating this: https://www.brenelz.com/posts/solid-js-best-practices/
|
||||
- Renderer process should only call `window.api` from `src/preload`.
|
||||
- Main process should register IPC handlers in `src/main/ipc.ts`.
|
||||
- NEVER hardcode user-visible English strings in production code. ALWAYS use an i18n key for native menus, picker titles, dialogs, buttons, accessible labels, and displayed errors.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue