elastic / elastic/eui

[EuiAutoSizer] Migrate from class to function component

Open
#9,467 2 comments 0 reactions 0 assignees View on GitHub
help wanted low hanging fruit
Dominant language
TypeScript
Stars
6.4k
Forks
911
Avg merge
2d 11h
Merged PRs (30d)
65

Description

`EuiAutoSizer` is an empty subclass of `react-virtualized-auto-sizer`'s `AutoSizer`. It exists to re-export the component under EUI's namespace.

- **File:** `components/auto_sizer/auto_sizer.tsx`
- **Class size:** 1 line (empty body)
- **Lifecycle:** Inherited from `AutoSizer`

**Migration notes:**

This depends on whether `react-virtualized-auto-sizer` itself supports function component usage or provides hooks. If the upstream library still exports a class, this wrapper may need to remain or be replaced with a hook-based alternative. Investigate upstream API first.

**Acceptance criteria:**

- [ ] Investigate upstream `react-virtualized-auto-sizer` API
- [ ] Convert to function component or re-export appropriately
- [ ] All existing tests pass

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.