Skip to content

parentProps in props (Preact) #26

@jchn

Description

@jchn

When using withHandlers or any other hoc, the props that are passed to the component are inside of a parentProps object while I expect them to be directly inside of the props object.

Example:
https://codesandbox.io/s/4q6wnl3w74

In this example the prop foo is inside of parentProps when logged in withHandlers.

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