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

Implement Immutable Sequences #2

Open
RickButler opened this issue Mar 13, 2018 · 0 comments
Open

Implement Immutable Sequences #2

RickButler opened this issue Mar 13, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@RickButler
Copy link
Member

Implement Lazy.js/Immutable.js style sequences as the collection types used and returned by SquidJS functions.

Everything as/is a Sequence.

Auto-convert Node/Element/HTMLElement and their derived types to SquidElements.

  • Who should track changes? Sequence or SquidElement?
  • Should SquidElement lazily create virtual-dom object?
  • Should Sequence call virtual DOM diff on each element for a Render or grab all SquidElements and pass them at once?
  • What should peeking the element do? create virtual DOM representation at that point? Peek the actual element?

A Sequence needs to be aware that is operating on multiple elements, and apply those changes in a single requestAnimationFrame when Render is called.

@RickButler RickButler added the enhancement New feature or request label Mar 13, 2018
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