LearnNewsExamplesServices
Frontmatter
id7008
titleUpdate the State Providers guide to reflect effects-based reactivity and direct store binding
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 10, 2025, 10:21 PM
updatedAtJul 10, 2025, 10:23 PM
githubUrlhttps://github.com/neomjs/neo/issues/7008
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 10, 2025, 10:23 PM

Update the State Providers guide to reflect effects-based reactivity and direct store binding

Closed v10.0.0-beta.6 enhancement
tobiu
tobiu commented on Jul 10, 2025, 10:21 PM

Description

The StateProviders.md guide has been updated to provide a more accurate and comprehensive explanation of how Neo.mjs State Providers implement reactivity, as well as to demonstrate the new capability of directly binding to Neo.data.Store properties.

Changes Made

  • Added a new section "How Reactivity Works: The Effects-Based System" to explain Neo.core.Effect and the hierarchical data proxy.
  • Updated the "Managing Stores with State Providers" example to remove the intermediate myStoreCount data property and onMyStoreCountChange listener.
  • Modified the Label binding in the store example to directly reference data.stores.mySharedStore.count.

Verification

Confirmed that the updated example in learn/guides/datahandling/StateProviders.md functions as expected, demonstrating direct reactive binding to store properties.

tobiu assigned to @tobiu on Jul 10, 2025, 10:21 PM
tobiu added the enhancement label on Jul 10, 2025, 10:21 PM
tobiu referenced in commit cb8f487 - "Update the State Providers guide to reflect effects-based reactivity and direct store binding #7008" on Jul 10, 2025, 10:21 PM
tobiu closed this issue on Jul 10, 2025, 10:23 PM