Apple\Apple 7e019db91b ⚡ perf(playground): optimize config loading and saving to reduce console spam
- Cache initial config using useRef to prevent repeated loadConfig() calls
- Fix useEffect dependencies to only trigger on actual config changes
- Modify debouncedSaveConfig dependency from function reference to actual config values
- Update handleConfigReset to use DEFAULT_CONFIG directly instead of reloading
- Prevent excessive console logging during chat interactions and frequent re-renders

This resolves the issue where console was flooded with:
"配置已从本地存储加载" and "配置已保存到本地存储" messages,
especially during active chat sessions where logs appeared every second.

Fixes: Frequent config load/save operations causing performance issues
2025-05-30 22:29:02 +08:00
..
2025-05-20 11:31:03 +08:00
2025-04-04 17:37:27 +08:00
2025-04-04 17:37:27 +08:00
2024-01-13 22:38:50 +08:00
2025-05-20 02:33:38 +08:00
2024-05-13 23:02:35 +08:00
2025-04-04 17:37:27 +08:00
2025-04-04 17:37:27 +08:00