Skip to content

subscribe function is implicitly any with react-hook-form >= 7.59.0 installed #177

@islami00

Description

@islami00

There was a typo in the UseFormSubscribe type of react-hook-form that was fixed in this pr react-hook-form/react-hook-form#12899. Since the built version of remix-hook-form@7.1.1 exposes those types internally, users with a version of react-hook-form>=7.59.0 will notice an any when trying to access those properties from useRemixForm.

I think it may be worth updating the react-hook-form peerDependency to at least 7.59.0 , and possibly consider how to avoid the implicit dependency on the types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions