LearnNewsExamplesServices
Frontmatter
id3846
titledata.RecordFactory: field calculate & convert not reflecting updates
stateClosed
labels
bugstale
assignees[]
createdAtJan 12, 2023, 10:14 AM
updatedAtSep 14, 2024, 4:26 AM
githubUrlhttps://github.com/neomjs/neo/issues/3846
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 14, 2024, 4:26 AM

data.RecordFactory: field calculate & convert not reflecting updates

Closed v8.1.0 bugstale
tobiu
tobiu commented on Jan 12, 2023, 10:14 AM

@Dinkh @maxrahder

in general we should discuss if we really need both: calculate and convert. i personally think that just one of them is sufficient, since both are based on functions (e.g. fat arrows).

the important point about this ticket: if we generate a new field like

{
    name: 'fullname',
    convert: data => `${data.firstname} ${data.lastname}`
}

the field needs to update in case any of the used fields inside the convert / calculate fn body get changed at run time. this is very similar to the way model.Component based bindings work.

tobiu added the bug label on Jan 12, 2023, 10:14 AM