Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

useEffect has a missing dependancy #7

@jf-home

Description

@jf-home

Hi,

Great search utility - thank you for sharing!

I have implemented your code but am getting the following message in the terminal:

warn ESLintError:
C:\home\lunr-search\src\pages\search.js
25:6 warning React Hook useEffect has a missing dependency: 'searchQuery'. Either include it or remove the dependency array react-hooks/exhaustive-deps

✖ 1 problem (0 errors, 1 warning)
0 errors and 1 warning potentially fixable with the --fix option.

I'm completely new to React and Gatsby, so this has stumpped me somewhat! Any help gratefully received.

Many thanks

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