consider turning our hooks that contain heavy processing into 'singleton' hooks
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
we can use singleton hooks to limit the processing of state pulled from redux stores (e.g. via useContract...) to happen only once, not per component
https://www.npmjs.com/package/react-singleton-hook
https://bundlephobia.com/package/react-singleton-hook
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating hooks that pull processed state from Redux, especially useContract, then read the react-singleton-hook documentation and inspect how those hooks are used across components. Done should mean an agreed set of hooks has been evaluated and the selected processing is safely shared rather than repeated per component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, redux, typescript
- Domain
- frontend, performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100