mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
24 lines
823 B
HTML
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>: ->
|
|
# refresh your event results
|
|
</code></pre>
|
|
</p>
|
|
</div>
|
|
|
|
<ul>
|
|
</ul>
|