Frontmatter
| id | 3846 |
| title | data.RecordFactory: field calculate & convert not reflecting updates |
| state | Closed |
| labels | bugstale |
| assignees | [] |
| createdAt | Jan 12, 2023, 10:14 AM |
| updatedAt | Sep 14, 2024, 4:26 AM |
| githubUrl | https://github.com/neomjs/neo/issues/3846 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 14, 2024, 4:26 AM |
@Dinkh @maxrahder
in general we should discuss if we really need both:
calculateandconvert. 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.Componentbased bindings work.