MCPcopy Create free account
hub / github.com/adobe/react-spectrum / updateCompleted

Function updateCompleted

examples/rsp-webpack-4/src/BodyContent.js:40–44  ·  view source on GitHub ↗
(complete)

Source from the content-addressed store, hash-verified

38 }
39
40 function updateCompleted(complete) {
41 setCompleted(prevListArray => {
42 return [...prevListArray, {id: prevListArray.length, task: complete}];
43 });
44 }
45
46 function clearCompleted() {
47 setCompleted(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected