Repository navigation
v0.1.6
Pre-release
Pre-release
This commit resolves the critical infinite loop issue where the App component continuously hit the /api/notes endpoint after mounting.
The fix ensures stability by:
- Refining loadNotes Dependencies: Removing the unstable dependency on the 'loading' state within the loadNotes useCallback hook to prevent state thrashing.
- Stable Component Lifecycle: Adjusting the main useEffect hook to run loadNotes only once on mount, using a cleanup function to prevent race conditions during component unmounting.