You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
12 components call api.* directly, bypassing the stores #862
CLAUDE.md sets the IPC chain as Component → store action → api.* → invoke(), and says components never call api.* themselves. It also says store actions own the loading and error state. These components break that rule:
Their tests have to mock tauri-api instead of a store.
Fix
Move the calls behind store actions, one area at a time (designer, backup/restore/import, history, admin), with the loading and error state in the store. An ESLint no-restricted-imports rule that forbids importing lib/tauri-api under src/components/ would stop new ones from appearing. It can be turned on once the existing calls are gone.
Activity