Skip to content

React Hook useEffect has missing dependencies #11

Description

@00hello

Compilation Error:

React Hook useEffect has missing dependencies: 'animationSpeed' and 'loopLength'. Either include them or remove the dependency array. If 'setTime' needs the current value of 'animationSpeed ', you can also switch to useReducer instead of useState and read 'animationSpeed' in the reducer react-hooks/exhaustive-deps

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions