Skip to content

v0.1.6

Pre-release
Pre-release

Choose a tag to compare

@volumedata21 volumedata21 released this 26 Nov 06:08
· 65 commits to main since this 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:

  1. Refining loadNotes Dependencies: Removing the unstable dependency on the 'loading' state within the loadNotes useCallback hook to prevent state thrashing.
  2. 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.