Skip to content

Conversation

@Lucas-Tisera
Copy link
Contributor

Description

Added missing dependencies (url and reqOpt) to useCallback hook in useFetch.ts to resolve React Hook dependency warning. Applied proper memoization to refetch function for consistency with existing patterns.

Changes

  • Added missing dependencies to useCallback
  • Applied memoization to refetch function
  • Maintained error handling pattern

Why

  • Resolves React Hook dependency warning
  • Ensures consistent memoization across the hook
  • Prevents unnecessary function recreations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant