LearnNewsExamplesServices
Frontmatter
id3845
titleFields with convert methods should be read-only
stateClosed
labels
bugstale
assignees[]
createdAtJan 11, 2023, 6:23 PM
updatedAtSep 14, 2024, 4:26 AM
githubUrlhttps://github.com/neomjs/neo/issues/3845
authormaxrahder
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 14, 2024, 4:26 AM

Fields with convert methods should be read-only

Closed v8.1.0 bugstale
maxrahder
maxrahder commented on Jan 11, 2023, 6:23 PM

In my demo today I tried to use the debugger to assign a value to a calculated field. The field is named "title" and in the debugger I drilled-down to the title: {...} and entered a value. It didn't work, unsurprisingly, but I think the dynamically created Record class should not give these fields "set" methods.

maxrahder added the bug label on Jan 11, 2023, 6:23 PM
tobiu
tobiu Jan 12, 2023, 10:06 AM

Tagging Torsten @Dinkh.

Every record "field" (data prop) needs a setter to enable us to get change events. e.g. in case we create a custom "fullname" field which combines first- and lastname, we want to reflect any changes into e.g. a grid.

what we could do: "freezing" the prop so that manual changes do get prevented and the record factory would need to do an unfreeze, update, re-freeze. non trivial and up for discussion.

@github-actions - 2024-08-30T02:27:13Z

This issue is stale because it has been open for 90 days with no activity.

  • 2024-08-30T02:27:13Z @github-actions added the stale label

@github-actions - 2024-09-14T02:26:12Z

This issue was closed because it has been inactive for 14 days since being marked as stale.

  • 2024-09-14T02:26:13Z @github-actions closed this issue