| 280 | } |
| 281 | |
| 282 | void 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 | |
| 291 | void Surface::onNodeAdded(const std::string& parentId, const std::string& nodeJson) { |
| 292 | auto json = nlohmann::json::parse(nodeJson, nullptr, false); |
no test coverage detected