Skip to content

Preact@10.0.0-rc.3 preact/compat not calling UNSAFE* functions #1941

@benflodge

Description

@benflodge

I'm working with react-table in the latest version 6.10.3 they have renamed the deprecated methods by adding the UNKOWN prefix (TanStack/table#1461). However when working with Peact X and preact/compat these functions are not being called.

Should preact/compat patch the unsafe functions on Component?
This https://github.com/preactjs/preact/blob/master/compat/src/index.js#L368 seems to patch the functions on the Component.

In this issue #1461 you mention keeping them until they are removed from react. Does Preact X with preact/compat support the UNSAFE* functions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions