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

Function submitHandler

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

Source from the content-addressed store, hash-verified

21 }, [category]);
22
23 const submitHandler = (e) => {
24 e.preventDefault();
25 dispatch(listProducts(category, searchKeyword, sortOrder));
26 };
27 const sortHandler = (e) => {
28 setSortOrder(e.target.value);
29 dispatch(listProducts(category, searchKeyword, sortOrder));

Callers

nothing calls this directly

Calls 1

listProductsFunction · 0.90

Tested by

no test coverage detected