@kithinji/orca 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2464,7 +2464,19 @@ var kithinjiorca = (() => {
2464
2464
  delete cleanProps.__clientComponent;
2465
2465
  const instance = injector.resolve(ComponentClass);
2466
2466
  instance.__injector = injector;
2467
- instance.props = cleanProps;
2467
+ const mergedProps = Object.create(
2468
+ Object.getPrototypeOf(instance.props || {})
2469
+ );
2470
+ Object.defineProperties(
2471
+ mergedProps,
2472
+ Object.getOwnPropertyDescriptors(instance.props || {})
2473
+ );
2474
+ Object.defineProperties(
2475
+ mergedProps,
2476
+ Object.getOwnPropertyDescriptors(cleanProps || {})
2477
+ );
2478
+ instance.props = mergedProps;
2479
+ instance.onInit?.();
2468
2480
  if (typeof instance.build !== "function") {
2469
2481
  throw new Error(`Component ${name} does not implement build()`);
2470
2482
  }