pour application android simpl-liste
Widget tap-to-expand felt slow (several seconds). Inverts the order in all three click handlers so the widget re-renders BEFORE awaiting the AsyncStorage write — the user sees the change immediately, persistence finishes in the background. - TOGGLE_COMPLETE / TOGGLE_EXPAND / TOGGLE_SUBTASK : render before persist - EXPAND_DEBOUNCE_MS 2000 -> 600 (still blocks accidental double-taps, no longer feels laggy when collapsing right after expanding) - persistState() wraps setWidgetState in try/catch — on failure the next handler call re-reads the prior state from AsyncStorage, UI self-heals - Dev-only timed() helper logs each step to logcat for measurement: adb logcat -s ReactNativeJS | grep '\[widget\]' Out of scope: cold start of the Android headless task service (suspected main contributor to perceived slowness, unfixable from JS). |
||
|---|---|---|
| .claude | ||
| .vscode | ||
| app | ||
| assets | ||
| src | ||
| web | ||
| .gitignore | ||
| app.json | ||
| babel.config.js | ||
| CLAUDE.md | ||
| drizzle.config.ts | ||
| eas.json | ||
| index.js | ||
| masterplan.md | ||
| metro.config.js | ||
| nativewind-env.d.ts | ||
| package-lock.json | ||
| package.json | ||
| spec-simpl-liste-web.md | ||
| sql-transformer.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||