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

useEffect has a missing dependancy #7

Open
jf-home opened this issue Dec 4, 2019 · 0 comments
Open

useEffect has a missing dependancy #7

jf-home opened this issue Dec 4, 2019 · 0 comments

Comments

@jf-home
Copy link

jf-home commented Dec 4, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant