-
-
Notifications
You must be signed in to change notification settings - Fork 815
Closed
Description
Summary
Upgrading from react-window v1 to v2 is confusing without a consolidated migration guide. In v1 we used FixedSizeList / VariableSizeList and the child render function; in v2 there’s a unified List with a rowComponent prop and new prop/type names. I’m not finding a single place that explains the exact mappings (components, props, and TS types), so the upgrade generates a lot of TypeScript errors and guesswork.
Docs I found
- Releases show a small upgrade snippet (uses List, rowComponent, rowCount, rowHeight, rowProps), but it doesn’t cover the common v1 surfaces (variable-size, horizontal lists, scroll/resize handlers, height, width etc.). 
- README points to the docs site, but there isn’t a dedicated migration page that covers the above in one place.
Requested migration content
- Component mapping
- FixedSizeList → List (fixed-size)
- VariableSizeList → List (variable-size)
- Prop mapping (Lists)
- itemCount → rowCount
- itemSize (number) → rowHeight (number) for fixed-size
- Horizontal lists: document the v2 prop(s) to replace layout="horizontal" (if applicable)
- Sizing (previous height & width props)
vtlnkhn, aldenquimby and silverwind
Metadata
Metadata
Assignees
Labels
No labels