gatsby-starter-shopify icon indicating copy to clipboard operation
gatsby-starter-shopify copied to clipboard

Warnings triggered in search.jsx

Open mor10 opened this issue 3 years ago • 0 comments

When booting this starter wile connected to a standard Shopify site, the following warning messages appear:

(...)/src/pages/search.jsx
115:9   warning  The 'productList' logical expression could make the dependencies of useEffect Hook (at line 127) change on every render. To fix this, wrap the initialization of 'productList' in its own useMemo() Hook  react-hooks/exhaustive-deps  
152:6   warning  React Hook React.useEffect has missing dependencies: 'fetchNextPage' and 'hasNextPage'. Either include them or remove the dependency array                                                                react-hooks/exhaustive-deps  
269:31  warning  React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead                                                                                                react-hooks/exhaustive-deps

mor10 avatar Jul 07 '21 17:07 mor10