Mailspring/docs/EventStore.html
2015-10-03 12:39:26 -07:00

24 lines
823 B
HTML

---
layout: docs
title: EventStore
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/event-store.coffee"
---
<h2>Summary</h2>
<div class="markdown-from-sourecode">
<p><p>EventStore maintains</p>
<h2 id="listening-for-changes">Listening for Changes</h2>
<p>The EventStore monitors the <a href='databasestore.html'>DatabaseStore</a> for changes to {Event} models
and triggers when events have changed, allowing your stores and components
to refresh data based on the EventStore.</p>
<pre><code class="lang-coffee"><span class="hljs-variable">@unsubscribe</span> = EventStore.<span class="hljs-function">listen</span>(<span class="hljs-variable">@_onEventsChanged</span>, @)
<span class="hljs-attribute">_onEventsChanged</span>: -&gt;
# refresh your event results
</code></pre>
</p>
</div>
<ul>
</ul>