Skip to content

Component: Support deep merging for bind_ configs #9280

@tobiu

Description

@tobiu

Currently, the bind_ configuration in Neo.component.Abstract lacks a deep merge descriptor. When a component instance is created and provided with a bind config (e.g., {store: 'stores.myStore'}), it completely overwrites any class-level bind config (e.g., {animateVisuals: ...}), rather than merging them.

This leads to unexpected loss of reactive bindings defined on the prototype.

Implementation Plan:

  • Add [isDescriptor]: true and merge: 'deep' to the bind_ configuration in src/component/Abstract.mjs.
  • Add unit tests in test/playwright/unit/state/Provider.spec.mjs to explicitly verify that class-level and instance-level bindings are correctly deep-merged.

Metadata

Metadata

Assignees

Labels

aicoreCore framework functionalityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions