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

Integrate ES6 Proxies into gooey.Service.data and gooey.Service.publish #1

Open
slurmulon opened this issue Jul 27, 2015 · 1 comment

Comments

@slurmulon
Copy link
Owner

http://www.2ality.com/2014/12/es6-proxies.html

Ensure data is a Proxy object that integrates proxy event handlers into gooey.Service.publish

This will be useful as it is a native abstraction for intercepting property requests on objects. This will allow us to more easily support model/view two-way data synchronization.

  • If data is a proxy, concurrent Service subscription handlers will be able to more easily synchronize data mutation events (order specification, conflict resolution fn, etc.), especially those between sibling Services that are mutating identical data points.
  • This is easier on the developer because we can trigger native events when data is mutated, and therefore we can trigger a recursive publication of that data change. can provide a "weight" heuristic to automatically resolve any remaining conflicts
@slurmulon slurmulon changed the title Integrate ES6 Proxies into Service.broadcast Integrate ES6 Proxies into gooey.Service.broadcast Jul 27, 2015
@slurmulon slurmulon changed the title Integrate ES6 Proxies into gooey.Service.broadcast Integrate ES6 Proxies into gooey.Service.data and gooey.Service.publish Aug 29, 2015
@slurmulon
Copy link
Owner Author

This will also help alleviate certain concurrency issues

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

No branches or pull requests

1 participant