Skip to content

Fix warnings upon React server launch #247

Description

@pleia2

While functional, the following warnings show up when the React server is launched:

Compiled with warnings.

[eslint]
src/components/HeroSection.jsx
Line 2:8: 'openMainFrameLogo' is defined but never used no-unused-vars

src/components/SearchBar.jsx
Line 41:6: React Hook useEffect has a missing dependency: 'isNoDistributionSelected'. Either include it or remove the dependency array react-hooks/exhaustive-deps

src/components/SearchResults.jsx
Line 15:6: React Hook useEffect has a missing dependency: 'updateAvailableDistributions'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 19:6: React Hook useEffect has a missing dependency: 'updatePaginatedResults'. Either include it or remove the dependency array react-hooks/exhaustive-deps

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in [eslint]
src/components/HeroSection.jsx
Line 2:8: 'openMainFrameLogo' is defined but never used no-unused-vars

src/components/SearchBar.jsx
Line 41:6: React Hook useEffect has a missing dependency: 'isNoDistributionSelected'. Either include it or remove the dependency array react-hooks/exhaustive-deps

src/components/SearchResults.jsx
Line 15:6: React Hook useEffect has a missing dependency: 'updateAvailableDistributions'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 19:6: React Hook useEffect has a missing dependency: 'updatePaginatedResults'. Either include it or remove the dependency array react-hooks/exhaustive-deps

webpack compiled with 1 warning

Metadata

Metadata

Assignees

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