Repository navigation
Fix Compat for React 19 types - #6632
Conversation
|
Just a FYI, I pulled this into my load more branch locally for S2 development and verified that it fixed most of the lint issues except for this last numberfield one which I didn't look into yet: |
# Conflicts: # packages/@react-aria/virtualizer/src/Virtualizer.tsx # packages/react-aria-components/src/Collection.tsx # packages/react-aria-components/src/useDragAndDrop.tsx
| import {DraggableCollectionState} from '@react-stately/dnd'; | ||
| import {globalDndState, setDraggingCollectionRef} from './utils'; | ||
| import {RefObject} from 'react'; | ||
| import {} from 'react'; |
There was a problem hiding this comment.
Why do we still need the react import here? I noticed in we dropped it in packages/@react-aria/grid/src/useGridRow.ts. There are additional places where we dropped it or did it this way too. It doesn't seem to be based on strict mode because there are some packages that have both versions.
# Conflicts: # packages/@react-aria/datepicker/src/useDateSegment.ts # packages/@react-aria/virtualizer/src/Virtualizer.tsx # packages/@react-types/shared/src/refs.d.ts # packages/react-aria-components/src/Collection.tsx # packages/react-aria-components/src/GridList.tsx # packages/react-aria-components/src/ListBox.tsx # packages/react-aria-components/src/Modal.tsx # packages/react-aria-components/src/Popover.tsx # packages/react-aria-components/src/Table.tsx # packages/react-aria-components/src/Tabs.tsx # packages/react-aria-components/src/Tooltip.tsx # packages/react-aria-components/src/Tree.tsx # packages/react-aria-components/src/utils.tsx
|
## API Changes
unknown top level export { type: 'any' } |
devongovett
left a comment
There was a problem hiding this comment.
Let's hope we can revert this eventually.
Closes
Found in Daniel's work, this adds needed compatibility between React 18 and 19 types. See microsoft/TypeScript#59049
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: