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

Rework the very non-reacty editor/tv data flow #19

Open
akx opened this issue Jun 11, 2018 · 0 comments
Open

Rework the very non-reacty editor/tv data flow #19

akx opened this issue Jun 11, 2018 · 0 comments

Comments

@akx
Copy link
Member

akx commented Jun 11, 2018

Currently the editor component calls APIs on the TV component to be able to reorder the data that is technically owned by the TV component.

This is silly and we will not stand for this silliness!

Without having to bring something like Redux into the mix, we could simply refactor the TV data management API into a separate manager with public APIs and event hooks, like I've done here: https://github.com/akx/coil/blob/5516ee0bb20e003965d99262392fc489b20f81c2/src/managers/TreeManager.tsx

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