googlearchive / iron-signals

Publish-subscribe functionality
14 stars 16 forks source link

QUESTION: Why is it recommended not to use iron-signals? #8

Closed mikkokam closed 9 years ago

mikkokam commented 9 years ago

To avoid coupling and use Polymer elements with an publish–subscribe pattern, iron-signals seems a good way to handle communication.

However, the documentation states:

Note: avoid using iron-signals whenever you can use a controller (parent element) to mediate communication instead.

Why is this? Any specific / implementation related problems here?

Should I use another library instead for pub/sub with Polymer elements?

atotic commented 9 years ago

Feel free to use it for true pub-sub, there are no known implementation problems.

The warning was there for some previous usage patterns, where pub-sub made simple things complex.