Skip to content

Conversation

@afonsojramos
Copy link
Member

Summary

  • Adds useAppContext() hook for type-safe context access
  • Replaces manual useContext(AppContext) calls throughout codebase

Benefits

  • Type-safe: returns AppContextState without casting
  • Fail-fast: throws if used outside provider
  • Cleaner imports: one hook instead of context + useContext

Test plan

  • All existing tests pass
  • Lint passes

@github-actions github-actions bot added the refactor Refactoring of existing feature label Dec 28, 2025
@sonarqubecloud
Copy link

Copy link
Member

@setchy setchy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@afonsojramos afonsojramos merged commit 9a5bd05 into main Dec 29, 2025
14 checks passed
@afonsojramos afonsojramos deleted the use-app-context-hook branch December 29, 2025 00:13
@github-actions github-actions bot added this to the Release 6.15.0 milestone Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

3 participants