MCPcopy Create free account
hub / github.com/codemistic/Web-Development / onSuccess

Function onSuccess

Django_React_Todo/frontend/src/pages/Tasks.jsx:38–41  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

36 deletion(`http://127.0.0.1:8000/api/task-delete/${postID}/`, body),
37 {
38 onSuccess(data) {
39 console.log("Got response from backend", data);
40 client.invalidateQueries("todos");
41 },
42 onError(error) {
43 console.log("Got error from backend", error);
44 },

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected