LearnNewsExamplesServices
Frontmatter
id7870
titleDocs: Clarify distinction between Non-Reactive Configs and Class Fields in Neo.core.Base
stateClosed
labels
documentationai
assigneestobiu
createdAtNov 23, 2025, 11:30 AM
updatedAtNov 23, 2025, 11:31 AM
githubUrlhttps://github.com/neomjs/neo/issues/7870
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 23, 2025, 11:31 AM

Docs: Clarify distinction between Non-Reactive Configs and Class Fields in Neo.core.Base

Closed v11.9.0 documentationai
tobiu
tobiu commented on Nov 23, 2025, 11:30 AM

Objective: Clarify the distinction between Non-Reactive Configs and Class Fields in the Neo.core.Base documentation.

Changes: Update the JSDoc for Neo.core.Base.config to explicitly explain that:

  • Non-Reactive Configs are eligible for the Neo.overwrites mechanism. This allows external code (themes, app-level overrides) to change the default value for a class, which then propagates to all subclasses and instances globally.
  • Class Fields should be used for internal state that is not intended to be globally reconfigured in this manner.

Reasoning: This distinction is critical for developers (and AI agents) to choose the correct property definition style based on whether global configurability/inheritance is required.

tobiu assigned to @tobiu on Nov 23, 2025, 11:30 AM
tobiu added the documentation label on Nov 23, 2025, 11:30 AM
tobiu added the ai label on Nov 23, 2025, 11:30 AM
tobiu referenced in commit a29aa64 - "Docs: Clarify distinction between Non-Reactive Configs and Class Fields in Neo.core.Base #7870" on Nov 23, 2025, 11:30 AM
tobiu
tobiu Nov 23, 2025, 11:31 AM

Input from Gemini:

✦ JSDoc updated in src/core/Base.mjs to provide clear guidance on using Non-Reactive Configs vs. Class Fields, highlighting the role of Neo.overwrites and inheritance propagation.

tobiu closed this issue on Nov 23, 2025, 11:31 AM