--- layout: docs title: EventStore edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/event-store.coffee" ---

Summary

EventStore maintains

Listening for Changes

The EventStore monitors the DatabaseStore for changes to {Event} models and triggers when events have changed, allowing your stores and components to refresh data based on the EventStore.

@unsubscribe = EventStore.listen(@_onEventsChanged, @)

_onEventsChanged: ->
  # refresh your event results