Mailspring/docs/EventStore.html

25 lines
823 B
HTML
Raw Normal View History

2015-10-03 01:57:40 +08:00
---
layout: docs
title: EventStore
2015-10-04 03:39:12 +08:00
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/event-store.coffee"
2015-10-03 01:57:40 +08:00
---
2015-10-02 03:34:16 +08:00
2015-10-03 01:57:40 +08:00
<h2>Summary</h2>
2015-10-02 03:34:16 +08:00
2015-10-03 01:57:40 +08:00
<div class="markdown-from-sourecode">
<p><p>EventStore maintains</p>
2015-10-02 03:34:16 +08:00
<h2 id="listening-for-changes">Listening for Changes</h2>
2015-10-03 01:57:40 +08:00
<p>The EventStore monitors the <a href='databasestore.html'>DatabaseStore</a> for changes to {Event} models
2015-10-02 03:34:16 +08:00
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>
2015-10-03 01:57:40 +08:00
<ul>
</ul>