Neo.grid.Container#getCellValues() is the grid's one value walk: toCsv() serializes it, and a reader outside the grid calls it. In Turbo Mode (autoInitRecords: false) a store holds a row as a raw object until something asks for its record, which the grid does for the rows it renders. The walk reads every row of the store, so most of the rows it reads are raw. For those it answers a different value than for the same row once it is a record, for every field the model computes.
Measured on dev at be8d0b0340 with a unit spec.
The Problem
The reproducer: a flat Neo.data.Store with autoInitRecords: false and 60 rows, in a grid that renders 8 rows. After the first render 14 of the 60 items were records and the rest raw.
model: {fields: [
{name: 'id', type: 'Integer'},
{name: 'value', type: 'Integer'},
{name: 'double', calculate: data => data.value * 2},
{name: 'city', mapping: 'address.city'},
{name: 'upper', convert: value =>String(value).toUpperCase()}
]}
// each row: {id: n, value: n, address: {city: `City ${n}`}, upper: 'ab'}// columns: value, double, city, upper
grid.toCsv():
value,double,city,upper
1,2,City 1,AB
…
52,,,ab
Row 1 was rendered and is a record. Row 52 was never rendered and is raw: its calculated and mapped cells are empty, and its converted cell holds the unconverted value.
So a CSV export of a Turbo Mode grid is wrong in every row the user has not scrolled to, and a spreadsheet writer or an agent that reads the walk gets the same values.
The Architectural Reality
getCellValues() (src/grid/Container.mjs:1435) reads each cell through column.getRecordValue(record). toCsv() (:1855) serializes its answer.
Neo.grid.column.Base#getRecordValue() (src/grid/column/Base.mjs:345) reads a record through record.get(field) and a raw row through Neo.ns(field, false, record), by property. A raw row has no property for a calculated or a mapped field, and it holds the unconverted value of a converted one. The raw branch came with #20359 for dotted paths.
Neo.data.Store#resolveField(item, fieldName) (src/data/Store.mjs:1775) is the engine's resolver for one field of a raw row. It handles mapping, calculate, convert and defaultValue, keeps the result on the raw row and creates no record. The class JSDoc calls this Soft Hydration (:64). doSort() (:643), filter() (:798) and Neo.data.TreeStore (:411, :625) call it for Turbo Mode when the model has complex fields; the sort came with #9066. The method is @protected.
Added on 2026-11-12: those callers ask it only for a property the row does not hold. Asked for one the row holds, it replaces the datum with its converted form, and the next call and the row's later record convert that again: convert: v => v * 1000 over ms: 52 answers 52000, then 52000000, and the record then holds 52000000000. The reproducer's toUpperCase() is idempotent and hid it. Measured in #20802, rows 1 and 2.
Neo.data.Model#hasComplexFields (src/data/Model.mjs:94) says whether a model has such fields.
Design authority: "toCsv() serializes it, and a reader outside the grid (a clipboard, a spreadsheet writer, an agent) calls it for the records and columns it needs, so every reader gets the same value for the same cell." (the JSDoc of getCellValues()). A cell's value must not depend on whether its row was rendered.
The Fix
The store answers a raw row for the walk, and the walk asks it. Neo.data.Store gets one public read that takes a raw row and field names, and returns a copy on which resolveField() has resolved each name that is a model field. For a record, and for a model without complex fields, it returns the row itself. getCellValues() passes every row through it and hands the result to column.getRecordValue(), which reads it by property as it does today. The walk hydrates no row and leaves every row as it found it.
resolveField() stays @protected, and getRecordValue() is not touched. A column knows nothing of Soft Hydration, and Neo.grid.column.AnimatedChange passes it a field's old and new value, which are no rows (src/grid/column/AnimatedChange.mjs:67).
Measured on dev at be8d0b0340 with this shape in a unit spec: eight field shapes (calculated, calculated with depends, mapped, converted, two converters that are not idempotent, mapped and converted) answer in two walks what the row's record answers, the row keeps its keys, and 50,000 raw rows by 8 columns take 177 ms against 79 ms for today's property reads.
Amended on 2026-11-12, after the review of PR #20801. The first version of this section sent the read through resolveField() from the column and made resolveField() public, and PR #20801 built exactly that. The gap was in this ticket: its reproducer never read the same row twice.
a raw row of a store whose model has complex fields is read through the store's read; every other row as today
no complex fields, a dataField that is no model field, a dotted dataField: the property read, as today
its JSDoc
unit arms
Neo.data.Store#resolveRow(item, fieldNames), new (the name is the leaf's)
the Soft Hydration section of the Neo.data.Store class JSDoc
a copy of a raw row with the named model fields resolved by resolveField(); the row itself for a record and for a model without complex fields; the store's row is never changed
a name that is no model field is skipped
its JSDoc, with @summary
the same arms
Neo.data.Store#resolveField() and Neo.grid.column.Base#getRecordValue(), existing
their own JSDoc
unchanged
none
none
the arms of #20359
Decision Record impact: none.
Acceptance Criteria
Over a raw Turbo Mode row, getCellValues() answers for a calculated, a mapped and a converted field what it answers for that row's record, in raw and in export mode.
toCsv() of the reproducer's grid has 52,104,City 52,AB for row 52.
The walk creates no record: after getCellValues() over every row, the number of records among store.items is what it was before.
A dataField that is no model field, and a dotted dataField, read as they do today. The arms of #20359 stay green.
A store whose model has no complex fields takes the property read and does not call resolveField().
The walk leaves a row as it found it. Two walks over one raw row answer the same values, the row has the keys it had, and its record then holds what an unread row's record holds, for a convert that is not idempotent (v => v * 1000), alone and with a mapping.
getRecordValue() reads an object that is no row as it does on dev: {load: 1} with the field load answers 1 in a store whose model maps a field named load.
Out of Scope
Type conversion. A raw row holds what the data holds: '7' in an Integer field reads as the string '7' from a raw row and as the number 7 from its record (measured in the same spec). resolveField() does not parse types either. That difference needs its own decision.
The other cells the walk answers differently for a raw row. A dotted dataField under a mapped or calculated root, a defaultValue in a model without complex fields, a convert over a key the row lacks. They are measured in #20802, which owns them with the type conversion above.
getRecordValue() on a record.
Avoided Traps
Hydrating the rows the walk reads. A store runs in Turbo Mode so that a row nobody looks at costs no record.
Resolving in toCsv() alone. The walk has other readers, and they would keep the wrong values.
Resolving on the store's own row. Soft Hydration keeps what it resolves, and a kept value is converted again by the next read and by the row's record (#20802).
Related
#20672 and PR #20674 (the walk), #20359 and PR #20582 (getRecordValue() and dotted paths), #9066 (Soft Hydration for sorting), #20802 (the raw-row read and the record derive a field differently).
unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Live latest-open + closed sweep: checked the latest 20 open of 32 (orange band; no owning ticket or epic for the value walk among the open ones) and searched closed and all states (getCellValues turbo raw calculated field, getRecordValue raw row resolveField, toCsv turbo mode calculated mapped field empty) on 2026-11-12; no equivalent or prior exclusion found. A2A in-flight claim sweep: the latest 30 messages, all read states; no claim on the value walk. MC sweep: "CSV or Excel export of a Turbo Mode grid shows empty cells for calculated or mapped fields in rows that were never rendered", 5 results, no prior decision found. Knowledge base, type: ticket: no such ticket; it names #9066 and #20359 as the neighbours. Own-assignment sweep: 1 open (#20667), not overlapping.
Hello! I'd like to work on this issue. I'll first reproduce the problem with a unit test, then implement the fix while preserving Turbo Mode's no-hydration behavior.
2026-11-12T01:29:37Z @github-actions assigned to @NganB2408923
@github-actions - 2026-11-12T01:29:38Z
Thanks for claiming this, @NganB2408923, and welcome! Assigned to you — you can start now.
Your claim reserves this issue for 7 days (any comment here resets the clock; we still merge the first approve-worthy PR if another lands first or a claim goes quiet).
An automatic reply. How claims work [QUARANTINED_URL: github.com]
NganB2408923 cross-referenced by PR #20801 on Nov 12, 2026, 3:30 AM
tobiu referenced in commit 981b910 - "fix: resolve complex fields in Turbo Mode (#20799) (#20801) on Nov 12, 2026, 1:51 PM
Context
Neo.grid.Container#getCellValues()is the grid's one value walk:toCsv()serializes it, and a reader outside the grid calls it. In Turbo Mode (autoInitRecords: false) a store holds a row as a raw object until something asks for its record, which the grid does for the rows it renders. The walk reads every row of the store, so most of the rows it reads are raw. For those it answers a different value than for the same row once it is a record, for every field the model computes.Measured on
devatbe8d0b0340with a unit spec.The Problem
The reproducer: a flat
Neo.data.StorewithautoInitRecords: falseand 60 rows, in a grid that renders 8 rows. After the first render 14 of the 60 items were records and the rest raw.model: {fields: [ {name: 'id', type: 'Integer'}, {name: 'value', type: 'Integer'}, {name: 'double', calculate: data => data.value * 2}, {name: 'city', mapping: 'address.city'}, {name: 'upper', convert: value => String(value).toUpperCase()} ]} // each row: {id: n, value: n, address: {city: `City ${n}`}, upper: 'ab'} // columns: value, double, city, uppergrid.toCsv():Row 1 was rendered and is a record. Row 52 was never rendered and is raw: its calculated and mapped cells are empty, and its converted cell holds the unconverted value.
The same row read three ways (row 51, raw):
valuedoublecityuppergetCellValues({mode: 'raw', records: [raw]})51undefinedundefined'ab'getCellValues({mode: 'export', records: [raw]})51nullnull'ab'store.resolveField(raw, field)51102'City 51''AB'getCellValues({mode: 'raw', records: [store.get(51)]})51102'City 51''AB'So a CSV export of a Turbo Mode grid is wrong in every row the user has not scrolled to, and a spreadsheet writer or an agent that reads the walk gets the same values.
The Architectural Reality
getCellValues()(src/grid/Container.mjs:1435) reads each cell throughcolumn.getRecordValue(record).toCsv()(:1855) serializes its answer.Neo.grid.column.Base#getRecordValue()(src/grid/column/Base.mjs:345) reads a record throughrecord.get(field)and a raw row throughNeo.ns(field, false, record), by property. A raw row has no property for a calculated or a mapped field, and it holds the unconverted value of a converted one. The raw branch came with#20359for dotted paths.Neo.data.Store#resolveField(item, fieldName)(src/data/Store.mjs:1775) is the engine's resolver for one field of a raw row. It handlesmapping,calculate,convertanddefaultValue, keeps the result on the raw row and creates no record. The class JSDoc calls this Soft Hydration (:64).doSort()(:643),filter()(:798) andNeo.data.TreeStore(:411,:625) call it for Turbo Mode when the model has complex fields; the sort came with#9066. The method is@protected.convert: v => v * 1000overms: 52answers52000, then52000000, and the record then holds52000000000. The reproducer'stoUpperCase()is idempotent and hid it. Measured in #20802, rows 1 and 2.Neo.data.Model#hasComplexFields(src/data/Model.mjs:94) says whether a model has such fields.toCsv()serializes it, and a reader outside the grid (a clipboard, a spreadsheet writer, an agent) calls it for the records and columns it needs, so every reader gets the same value for the same cell." (the JSDoc ofgetCellValues()). A cell's value must not depend on whether its row was rendered.The Fix
The store answers a raw row for the walk, and the walk asks it.
Neo.data.Storegets one public read that takes a raw row and field names, and returns a copy on whichresolveField()has resolved each name that is a model field. For a record, and for a model without complex fields, it returns the row itself.getCellValues()passes every row through it and hands the result tocolumn.getRecordValue(), which reads it by property as it does today. The walk hydrates no row and leaves every row as it found it.resolveField()stays@protected, andgetRecordValue()is not touched. A column knows nothing of Soft Hydration, andNeo.grid.column.AnimatedChangepasses it a field's old and new value, which are no rows (src/grid/column/AnimatedChange.mjs:67).Measured on
devatbe8d0b0340with this shape in a unit spec: eight field shapes (calculated, calculated withdepends, mapped, converted, two converters that are not idempotent, mapped and converted) answer in two walks what the row's record answers, the row keeps its keys, and 50,000 raw rows by 8 columns take 177 ms against 79 ms for today's property reads.Amended on 2026-11-12, after the review of PR #20801. The first version of this section sent the read through
resolveField()from the column and maderesolveField()public, and PR #20801 built exactly that. The gap was in this ticket: its reproducer never read the same row twice.Contract Ledger
Neo.grid.Container#getCellValues({dataFields, mode, records}), existing (src/grid/Container.mjs:1435)dataFieldthat is no model field, a dotteddataField: the property read, as todayNeo.data.Store#resolveRow(item, fieldNames), new (the name is the leaf's)Neo.data.Storeclass JSDocresolveField(); the row itself for a record and for a model without complex fields; the store's row is never changed@summaryNeo.data.Store#resolveField()andNeo.grid.column.Base#getRecordValue(), existing#20359Decision Record impact: none.
Acceptance Criteria
getCellValues()answers for a calculated, a mapped and a converted field what it answers for that row's record, inrawand inexportmode.toCsv()of the reproducer's grid has52,104,City 52,ABfor row 52.getCellValues()over every row, the number of records amongstore.itemsis what it was before.dataFieldthat is no model field, and a dotteddataField, read as they do today. The arms of#20359stay green.resolveField().convertthat is not idempotent (v => v * 1000), alone and with amapping.getRecordValue()reads an object that is no row as it does ondev:{load: 1}with the fieldloadanswers1in a store whose model maps a field namedload.Out of Scope
'7'in anIntegerfield reads as the string'7'from a raw row and as the number7from its record (measured in the same spec).resolveField()does not parse types either. That difference needs its own decision.dataFieldunder a mapped or calculated root, adefaultValuein a model without complex fields, aconvertover a key the row lacks. They are measured in #20802, which owns them with the type conversion above.getRecordValue()on a record.Avoided Traps
toCsv()alone. The walk has other readers, and they would keep the wrong values.Related
#20672 and PR #20674 (the walk), #20359 and PR #20582 (
getRecordValue()and dotted paths), #9066 (Soft Hydration for sorting), #20802 (the raw-row read and the record derive a field differently).unowned-rationale: Ready for a contributor; maintainers provide planning and review.
Live latest-open + closed sweep: checked the latest 20 open of 32 (orange band; no owning ticket or epic for the value walk among the open ones) and searched closed and all states (
getCellValues turbo raw calculated field,getRecordValue raw row resolveField,toCsv turbo mode calculated mapped field empty) on 2026-11-12; no equivalent or prior exclusion found. A2A in-flight claim sweep: the latest 30 messages, all read states; no claim on the value walk. MC sweep: "CSV or Excel export of a Turbo Mode grid shows empty cells for calculated or mapped fields in rows that were never rendered", 5 results, no prior decision found. Knowledge base,type: ticket: no such ticket; it names#9066and#20359as the neighbours. Own-assignment sweep: 1 open (#20667), not overlapping.Origin Session ID: bea61f78-2128-4745-a852-7f6385c61400
Retrieval Hint: "value walk raw Turbo Mode row calculated mapped converted field resolveField getRecordValue toCsv empty cell"
— Vega (Claude Fable 5.2, Claude Code) 🌿