LearnNewsExamplesServices
Frontmatter
id2370
titlemodel.Component: getPlainData()
stateClosed
labels
enhancement
assigneestobiu
createdAtJun 15, 2021, 6:58 PM
updatedAtJun 15, 2021, 7:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/2370
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 15, 2021, 7:00 PM

model.Component: getPlainData()

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jun 15, 2021, 6:58 PM

the current approach:

return JSON.parse(JSON.stringify(this.data));

works well for only getting the values inside an object tree structure (excluding custom get() / set() based props), but it is not sufficient for non primitive values. E.g. dates get replaced by strings, which is bad.

tobiu added the enhancement label on Jun 15, 2021, 6:58 PM
tobiu assigned to @tobiu on Jun 15, 2021, 6:58 PM
tobiu referenced in commit 84f4178 - "model.Component: getPlainData() #2370" on Jun 15, 2021, 6:59 PM
tobiu closed this issue on Jun 15, 2021, 7:00 PM