* Add logic to save prompt input state to local storage and use as initial state on mount * Synchronize prompt input state with parent component on mount * lint * Clear USER_PROMPT_INPUT_VALUE local storage value in all instances of auth clearing * Remove USER_PROMPT_INPUT_VALUE local storage `removeItem` logic from excessive sources * Refactor logic to cache prompt input value state by thread | abstract into a custom hook | rename localStorage key variables for clarity. * Remove console log statement from usePromptInputStorage hook to clean up code. * Update comments in usePromptInputStorage hook for clarity on localStorage handling * Implement debounced localStorage updates in usePromptInputStorage hook to improve performance and prevent writing on every keystroke. * Refactor localStorage handling in usePromptInputStorage hook to utilize safeJsonParse | Remove uneeeded comments * Remove useEffect cleanup comment --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com> |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| .nvmrc | ||
| index.html | ||
| jsconfig.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| vite.config.js | ||
| yarn.lock | ||