fix: resolve RPC component from hydration boundary
This commit is contained in:
@@ -1062,7 +1062,12 @@ export const REACTIVE_RUNTIME = String.raw`
|
||||
};
|
||||
},
|
||||
});
|
||||
var componentRpcName = componentEventTarget.getAttribute("data-wrn-component") || componentEventTarget.getAttribute("data-wrn-hydration") || "component";
|
||||
var componentHydrationTarget = componentEventTarget.closest("[data-wrn-hydration]");
|
||||
var componentRpcIdentity = componentEventTarget.getAttribute("data-wrn-component") ||
|
||||
(componentHydrationTarget && componentHydrationTarget.getAttribute("data-wrn-hydration")) ||
|
||||
el.getAttribute("data-wrn-hydration") ||
|
||||
"component";
|
||||
var componentRpcName = String(componentRpcIdentity).split(":", 1)[0] || "component";
|
||||
var serverProxy = new Proxy({}, {
|
||||
get: function (_target, property) {
|
||||
return function () {
|
||||
|
||||
Reference in New Issue
Block a user