@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.
@@ -2331,7 +2331,19 @@ var OSC = class _OSC {
2331
2331
  delete cleanProps.__clientComponent;
2332
2332
  const instance = injector.resolve(ComponentClass);
2333
2333
  instance.__injector = injector;
2334
- instance.props = cleanProps;
2334
+ const mergedProps = Object.create(
2335
+ Object.getPrototypeOf(instance.props || {})
2336
+ );
2337
+ Object.defineProperties(
2338
+ mergedProps,
2339
+ Object.getOwnPropertyDescriptors(instance.props || {})
2340
+ );
2341
+ Object.defineProperties(
2342
+ mergedProps,
2343
+ Object.getOwnPropertyDescriptors(cleanProps || {})
2344
+ );
2345
+ instance.props = mergedProps;
2346
+ instance.onInit?.();
2335
2347
  if (typeof instance.build !== "function") {
2336
2348
  throw new Error(`Component ${name} does not implement build()`);
2337
2349
  }