MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / updateNode

Function updateNode

frontend/src/hooks/useRemoteNode.ts:86–101  ·  view source on GitHub ↗
(uuid: string, data: any)

Source from the content-addressed store, hash-verified

84 };
85
86 const updateNode = async (uuid: string, data: any) => {
87 const { execute } = editNodeApi();
88 const { execute: tryConnectNode } = connectNode();
89 await execute({
90 params: {
91 uuid
92 },
93 data
94 });
95 await tryConnectNode({
96 params: {
97 uuid
98 }
99 });
100 await refresh(true);
101 };
102
103 return {
104 response: state,

Callers

nothing calls this directly

Calls 2

executeFunction · 0.85
refreshFunction · 0.70

Tested by

no test coverage detected