Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 deprecation warning: InternalMosaicWindow2 accesses element.ref #225

Open
printfn opened this issue Feb 12, 2025 · 0 comments
Open

Comments

@printfn
Copy link

printfn commented Feb 12, 2025

I'm seeing this deprecation warning when using React 19:

Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release. Component Stack: 
    InternalMosaicWindow2 MosaicWindow.tsx:64
    ConnectedInternalMosaicWindow MosaicWindow.tsx:260
    MosaicWindow2 react-mosaic-component.js:8857
    div unknown:0
    div unknown:0
    MosaicRoot2 MosaicRoot.tsx:15
    div unknown:0
    MosaicWithoutDragDropContext2 react-mosaic-component.js:7861
    DndProvider2 DndProvider.tsx:28
    Mosaic2 react-mosaic-component.js:7994

It would probably make sense to access element.props.ref and fall back to element.ref if that doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant