Skip to main content

ImportedStateChangedEvent

This event is emitted when a state this app extends, or a store it reads, holds other graphs than the ones this app's last commit was built on. importKey is extends:<index> or stores:<name>.

@group

Events/State

Hierarchy

  • StateEvent<{ importKey: string }>
    • ImportedStateChangedEvent

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    • optionalname: string

      The subject of the event, when the event type alone does not identify it.

    • optionalpayload: { importKey: string }

      The event's data.

      • importKey: string

    Returns ImportedStateChangedEvent

Properties

readonlyinheritedheader

header: { sequence: number; timestamp: number }

When the event was created. sequence counts every event this process created, so it orders two events created in the same millisecond, and events a late listener receives replayed.


Type declaration

  • sequence: number
  • timestamp: number

readonlyinheritedname

name: string

The subject of the event, when the event type alone does not identify it - e.g. the class name on a registration event. Empty otherwise.

readonlyinheritedpayload

payload: { importKey: string }

The event's data. Its shape is fixed by the event type.


Type declaration

  • importKey: string
Page Options