LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-sophie
createdAtSep 20, 2025, 2:01 PM
updatedAtNov 6, 2026, 2:59 PM
githubUrlhttps://github.com/neomjs/neo/issues/7224
authortobiu
commentsCount6
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 20403 ComboBox steals a shared Store''s record-change notification route
blocking[]
closedAtNov 6, 2026, 2:59 PM

Create Learning Guide: Using data.Store

Closed v13.4.0/archive-v13-4-0-chunk-2 documentationenhancementno auto closeai
tobiu
tobiu commented on Sep 20, 2025, 2:01 PM

Problem

The documentation provides detailed guides for Neo.collection.Base and Neo.data.Model (Records), which are the building blocks of the data layer. However, there is no dedicated guide for Neo.data.Store, which is the class that developers will most commonly use to bring these concepts together and connect them to data-aware UI components like Grids and ComboBoxes. This leaves a gap in the learning path from understanding the core data classes to using them in practice.

Solution

Create a new guide in the learn/guides/datahandling section that focuses specifically on Neo.data.Store. This guide will act as a bridge, showing how to use Collections and Records together via the Store to manage and display data.

Content Outline

The guide should cover the following topics:

  1. Introduction to data.Store:

    • Explain that data.Store extends collection.Base and is specialized for managing Record instances.
    • Briefly recap its role as the central piece of the data layer for UI components.
  2. Creating a Store:

    • Show how to define a class that extends Neo.data.Store.
    • Explain the key static config properties:
      • model: How to associate a Neo.data.Model.
      • keyProperty: Its importance for record lookups.
      • data: Providing inline, local data.
  3. Loading Remote Data:

    • Explain how to use the url_ config to fetch data from a remote server.
    • Show an example of the expected JSON response format.
    • Explain the autoLoad_ config.
  4. Connecting Stores to Components:

    • Provide a practical example of creating a Neo.grid.Container and assigning a Store instance to its store config.
    • Show how the grid automatically displays the data.
  5. The sourceId Pattern for Shared Data:

    • Explain the problem: filtering a shared store for one component (like a ComboBox) affects another (like a Grid).
    • Demonstrate the solution:
      • Create a main, unfiltered "master" store.
      • Create a second store for a ComboBox, configured with sourceId pointing to the master store.
      • Show how filtering the ComboBox's store does not affect the master store or the Grid.
  6. Interacting with a Store:

    • Briefly cover common methods like add(), remove(), get(), and how they work with Record instances.
    • Mention the recordChange event and its importance for granular UI updates.

Acceptance Criteria

  • A new markdown file is created at learn/guides/datahandling/UsingStores.md.
  • The guide follows the proposed content outline.
  • The guide includes clear, practical code examples.
  • The new guide is added to the learn/tree.json file.

Intake-derived Contract Ledger · @neo-gpt-sophie · 2026-11-06

The original four acceptance criteria above remain unchanged. The scope reconciliation and native proof sharpen the 2025 prescription against current source.

Target surface Authority Behavior taught Boundary / fallback Documentation Evidence
New learn/guides/datahandling/UsingStores.md Original path and outline; existing Tables/Records/Collections guides One practical data-to-views workflow, linking the existing conceptual authority rather than duplicating it Records are Model-created row objects, not instances of the Model class New guide; brief companion link from Tables All original outline topics mapped to sections; Portal route read
Store subclass and Model/key contract Existing ComboBox MainStore/MainModel; src/data/Store.mjs and src/data/Model.mjs Explicit keyProperty, schema and local data; keyed get() Each Store receives a Model class or its own Model instance; no shared instance routing ownership Runnable/example code and ownership explanation Execute literal final snippets; compare keys/record identity
URL loading Existing resources/examples/data/us_states.json, Fetch connection and Store loading path Current public url and autoLoad; show the actual JSON success/data envelope and deliberate load timing Explain example URL context; do not imply readiness means network completion or make pagination claims Concrete loader example; link DataPipelines for transport detail Real request and loaded records in browser
Grid and ComboBox binding Current shared-Store behavior after merged PR #20406 Both bind the same provider-owned Store; picker typing changes only its private query Provider owns the created Store; removing the field leaves source/Grid edits working Complete view composition Native typing, source counts, recordChange and Grid update through field teardown
Application-owned sourceId projection Tables.md and current Store/Collection behavior Separate query/order over shared records; Model class reused as a fresh instance Source record edits do not automatically broadcast/refilter every projection; show explicit refresh when relevant Shortlist example and cleanup Identity, independent filters/order, structural add/remove and refresh observations
Navigation and discoverability Existing Data Handling container in learn/tree.json Register the requested companion page and rank its source SEO entry Leave generated sitemap/llms outputs to the data-sync pipeline Tree entry and PRIORITIES input Tree/link checks; rendered Portal navigation and Mermaid diagram

Revalidation trigger: the literal combined example fails notification continuity, ownership or projection semantics on current dev. Revisit the owning primitive before documenting a workaround. Dynamic Model-schema propagation and remote paging are not new promises of this guide.

tobiu assigned to @tobiu on Sep 20, 2025, 2:01 PM
tobiu added the documentation label on Sep 20, 2025, 2:01 PM
tobiu added the enhancement label on Sep 20, 2025, 2:01 PM
tobiu added the no auto close label on Sep 20, 2025, 2:01 PM