LearnNewsExamplesServices
Frontmatter
id7009
titleAdd Formulas in Action Example to State Provider Guide
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 10, 2025, 10:47 PM
updatedAtJul 10, 2025, 11:29 PM
githubUrlhttps://github.com/neomjs/neo/issues/7009
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 10, 2025, 11:29 PM

Add Formulas in Action Example to State Provider Guide

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

Description

A new live-preview example, "Formulas in Action," has been added to the learn/guides/datahandling/StateProviders.md guide. This example visually demonstrates how formulas within State Providers automatically react to changes in their dependencies, making the concept of effect-based computed properties less abstract.

Changes Made

  • Added a new javascript live-preview code block and accompanying explanation under a new "Formulas in Action" sub-section.
  • The example showcases price, quantity, total, and discountedTotal data properties, with total and discountedTotal being formulas that react to changes in price and quantity.
  • The discountedTotal output is rounded to two decimal places for better readability.

Verification

Confirmed that the new live-preview example functions as expected within the documentation, demonstrating the reactive behavior of formulas.

tobiu assigned to @tobiu on Jul 10, 2025, 10:47 PM
tobiu added the enhancement label on Jul 10, 2025, 10:47 PM
tobiu referenced in commit 98800ed - "Add Formulas in Action Example to State Provider Guide #7009" on Jul 10, 2025, 10:47 PM
tobiu closed this issue on Jul 10, 2025, 10:47 PM
tobiu
tobiu Jul 10, 2025, 11:28 PM

let us re-open the ticket for further simplification.

tobiu reopened this issue on Jul 10, 2025, 11:28 PM
tobiu referenced in commit 1a23d25 - "#7009 simplification" on Jul 10, 2025, 11:29 PM
tobiu closed this issue on Jul 10, 2025, 11:29 PM