3 ms·
Can anyone reccomend a good state management scheme for building large scale Polymer apps? My team has gone this route of building small custom elements for eve
by aphextron 9y ago
Can anyone reccomend a good state management scheme for building large scale Polymer apps? My team has gone this route of building small custom elements for everything, but getting them to communicate has been a pain. AngularJS solved that really well I think with $broadcast and $emit, but we'd rather stay away from monolithic frameworks.
- ergo14 9y agoWell you can do `polymer-redux`, `polymer-uniflow` or mixins (https://www.captaincodeman.com/2017/07/06/managing-state-in-polymer-20-beyond-parent-child-binding https://www.captaincodeman.com/2017/07/06/managing-state-in-...). I went with redux. You could I guess technically you could implement $broadcast - but that would be slow same as with angular, as for $emit you can just emit standard events.
- westbrook 9y agoThis could also be of benefit to your research: https://gist.github.com/kevinpschaaf/995c9d1fd0f58fe021b174c4238b38c3 https://gist.github.com/kevinpschaaf/995c9d1fd0f58fe021b174c...