Skip to content

Nodes' data structure #6601

Answered by etrepum
unbeauvoyage asked this question in Q&A
Sep 6, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote
  1. Probably not something to worry much about. If/when lexical adds new properties to the base nodes it would likely be part of a bigger backwards incompatible change that you'd have to refactor for anyway. You could also use a single underscore for application properties instead of two and never have to worry about it at all.
  2. Hard to say whether you're missing something or not without seeing the code, but it is likely that import/export/clone best practices will change in the future (possibly in a backwards incompatible way)
  3. Should be fine as long as clone is implemented correctly, you want to make sure your __meta object is not shared across versions of that node (e.g. this.__meta = {...p…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by unbeauvoyage
Comment options

You must be logged in to vote
1 reply
@etrepum
Comment options

etrepum Sep 9, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants