kripod / kripod/react-hooks

[useSize] Investigate ResizeObserver pooling

Open
#119 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
557
Forks
25
PR merge metrics
No merged PRs in 30d

Description

## Motivation

Similar to how [react-intersection-observer](https://github.com/thebuilder/react-intersection-observer) handles registering observer callbacks, construction of the `ResizeObserver` object may be pooled.

Contributor guide

Open the contributing guide

Research direction

Start by locating the useSize implementation and compare its ResizeObserver registration with the pooling approach in react-intersection-observer. The issue does not define acceptance criteria; completion would require determining whether pooling is appropriate and agreeing on the resulting scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.