Skip to content

feat(hooks): add 'useMap'#235

Merged
seungrodotlee merged 6 commits into
toss:mainfrom
uniqueeest:feat/useMap
Jun 1, 2025
Merged

feat(hooks): add 'useMap'#235
seungrodotlee merged 6 commits into
toss:mainfrom
uniqueeest:feat/useMap

Conversation

@uniqueeest
Copy link
Copy Markdown
Contributor

Overview

This PR adds a useMap hook that provides an efficient way to manage Map data structures in React components. The hook optimizes state updates and provides stable references to minimize unnecessary re-renders.
Key features:

  • Efficient management of Map state (adding, updating, removing key-value pairs)
  • Stable action functions to prevent unnecessary re-renders
  • Initial state configuration and reset capability
  • Full TypeScript type safety

Checklist

  • Did you write the test code?
  • Have you run yarn run fix to format and lint the code and docs?
  • Have you run yarn run test:coverage to make sure there is no uncovered line?
  • Did you write the JSDoc?

@uniqueeest uniqueeest changed the title Feat/use map feat(hooks) : add useMap May 9, 2025
@uniqueeest uniqueeest changed the title feat(hooks) : add useMap feat(hooks): add 'useMap' May 9, 2025
seungrodotlee
seungrodotlee previously approved these changes Jun 1, 2025
Copy link
Copy Markdown
Contributor

@seungrodotlee seungrodotlee left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (bea638d) to head (ef8fa76).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #235   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        34    +1     
  Lines          836       865   +29     
  Branches       254       265   +11     
=========================================
+ Hits           836       865   +29     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/hooks/useMap/useMap.ts
Comment thread src/hooks/useMap/useMap.ts Outdated
Comment thread src/hooks/useMap/useMap.ts Outdated
@seungrodotlee seungrodotlee merged commit 29f547d into toss:main Jun 1, 2025
8 checks passed
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.

3 participants