Skip to content

Suggestion for improvement effector/prefer-useUnit rule #145

Description

@dmitryshelomanov

Error message

leaveEvent must be wrapped with useUnit from effector-react before usage inside React components

Example

function useLeave(event: Event<void>) {
  const e = useUnit(event)
}

No need to apply effector/prefer-useUnit to custom hooks params.
Verification is required only at the place of use.
For example above - error message valid if event no wrap in to useUnit

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions