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

Refactor State Architecture #4

Open
pik opened this issue May 1, 2017 · 0 comments
Open

Refactor State Architecture #4

pik opened this issue May 1, 2017 · 0 comments

Comments

@pik
Copy link
Owner

pik commented May 1, 2017

There are several objectives that should be achieved or more easily achievable with a refactor.

**Separate state (as much as possible from Polymer components) **

Polymer state changes and notifications are some of the worst I've used and constantly require un-pleasant work arounds, more so computing things that could be computed outside of the Poylmer Elements: such as the filtered list of comments based on user-settings (by passing UI changes of user-settings to a backing comment-tree) would also make it easier to potentially switch to a different framework (React) at some point in the future.

**Delay tree updates (especially on first load) to improve performance **

Debounce certain outgoing network effects (such as flags, to allow toggling without outgoing events)

This (debouncing) is currently done for e.g. persisting custom user settings but should be more wide-spread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant