MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / onNodeUpdate

Method onNodeUpdate

core/src/surface/agenui_surface.cpp:282–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void Surface::onNodeUpdate(const std::string& componentId, const std::string& nodeJson) {
283 if (!_surfaceManager) return;
284 ComponentsUpdateMessage message;
285 message.componentId = componentId;
286 message.component = nodeJson;
287 _pendingDispatches.emplace_back(std::move(message));
288 _dispatchGuard.requestFlush();
289}
290
291void Surface::onNodeAdded(const std::string& parentId, const std::string& nodeJson) {
292 auto json = nlohmann::json::parse(nodeJson, nullptr, false);

Callers 1

notifyComponentUpdateMethod · 0.80

Calls 1

requestFlushMethod · 0.80

Tested by

no test coverage detected