evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

Exhaustive deps warning in AutcompleteTagInputExample

Open brandongregoryscott opened this issue 3 years ago • 0 comments

Looks like the way we've written this example is giving an exhaustive deps warning. Open the CodeSandbox at https://evergreen.segment.com/components/tag-input#autocomplete and click on the Problems panel to see:

image

I think we can move allValues outside of the function scope so it isn't redefined every render to resolve this warning.

brandongregoryscott avatar Jul 15 '22 16:07 brandongregoryscott