Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Children nodes should be virtual untill traversed #3

Open
Gryhyphen opened this issue Feb 15, 2020 · 0 comments
Open

Children nodes should be virtual untill traversed #3

Gryhyphen opened this issue Feb 15, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Gryhyphen
Copy link
Owner

To support many of the features of Ninoa, such as recursion for loops and for simple implementation of prop merging/inheritance, the children nodes of any node in the "Dialog Object Model" must be virtual.

Another reason is so that to regenerate position correctly, we just need to know the function, the (merged/inherited) props and the internal state (scoped to that node function).

This means we need keep a record of what function we need to execute to make it real, and whatever "props" values it was given.

See how React's virtual tree works for inspiration. (However keep in mind we don't 'render' the full tree).

@Gryhyphen Gryhyphen added the enhancement New feature or request label Feb 15, 2020
@Gryhyphen Gryhyphen added this to the v0.1.0.alpha milestone Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant