The documentation is sparse.
I know how events work, and have it working in my app. Just don’t know how to correctly hook it up.
I have several components (pages) who are dependant on Events to get datasource updates.
At first I simply added the
events.subscribe( ... ) in the constructor of said components, but it seems the constructor gets run every time you enter that page - so I end up getting subscribed to the same event many many times.
How do I make these events run ONCE per component?