Skip to content

Avoid referencing unbound methods which may cause unintentional scoping of this. #2513

@parth391

Description

@parth391

@inertiajs/react Version

2.1.1

Backend stack (optional)

eslint: 9.33.0
typescript-eslint: 8.39.1
typescript: 5.9.2

Describe the problem

Avoid referencing unbound methods which may cause unintentional scoping of this.
If your function does not access this, you can annotate it with this: void, or consider using an arrow function instead @typescript-eslint/unbound-method

Steps to reproduce

const {
    reset,
} = useForm({
    ...
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    reactRelated to the react adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions