Skip to content

console warnings and React 19 #2

Description

@AnnMarieW

Hi @jeffgallini

This looks like a really nice component. There’s a lot here already, especially for a first release.

A couple questions and notes from trying it out:

React dependency

It looks like mantine-datatable v8 requires react 19, but the install step overrides this using

npm install --legacy-peer-deps

so it installs with React 18 (which Dash requires).

Since Mantine v8 supports both React 18 and 19, do you know if mantine-datatable actually needs React 19? Or is that just an overly strict peer dependency?

Console warnings

When I run the quick start app I see two warnings:

Warning: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

The defaultProps one is easy to fix by switching to default params. I can do a PR for that if you like. I haven’t dug into the ref warning much.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions