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

feat(cosmoz-data-nav-pure): haunted implementation #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cristinecula
Copy link
Collaborator

@cristinecula cristinecula commented Sep 30, 2020

I decided to have a whack at a more declarative data-nav. The result is a very reliable data-nav that does away with all of the complexity of keeping an item cache and mutable data. It relies on immutable data being passed from the component above. It keeps the maintain selection and need-data behaviour.

It's missing the transition animation and the incomplete template, which I will add in a follow-up PR.

This is meant to be used only with renderItem functions that render haunted views. This is not tested with polymer views and will likely cause bugs, due to polymer's use of mutable state.

I decided to have a whack at a more declarative data-nav. The result is a very reliable data-nav
that does away with all of the complexity of keeping an item cache and mutable data. It relies on
immutable data being passed from the component above. It keeps the maintain selection and need-data
behaviour.

It's missing the transition animation and the incomplete template, which I will add in a follow-up
PR.

This is meant to be used only with renderItem functions that render haunted views. This is not
tested with polymer views and will likely cause bugs, due to polymer's use of mutable state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant