MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / sortHandler

Function sortHandler

frontend/src/screens/HomeScreen.js:27–30  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

25 dispatch(listProducts(category, searchKeyword, sortOrder));
26 };
27 const sortHandler = (e) => {
28 setSortOrder(e.target.value);
29 dispatch(listProducts(category, searchKeyword, sortOrder));
30 };
31
32 return (
33 <>

Callers

nothing calls this directly

Calls 1

listProductsFunction · 0.90

Tested by

no test coverage detected