Redux Beacon
Github
Search…
Introduction
Getting Started (Redux)
Getting Started (ngrx)
Examples & Recipes
Targets
API Reference
createMiddleware
createMetaReducer
EventDefinition
EventsMap
EventsMapper
Extensions
Utils
FAQ
Migration Guide (v1 to v2)
Notes on Offline Events
Powered By
GitBook
EventsMap
An
Object
you provide to Redux Beacon to map action types to
eventDefinitions
.
Syntax
1
import
{
2
eventForActionA
,
3
eventForActionB
,
4
eventForAllActions
,
5
}
from
'./event-definitions'
;
6
7
const
eventsMap
=
{
8
'ACTION_A'
:
eventForActionA
,
9
'ACTION_B'
:
eventForActionB
,
10
'*'
:
eventForAllActions
,
11
};
Copied!
Rules
Each key in the eventsMap must correspond to an action type.
Each property in the eventsMap must be a valid
eventDefinition
.
The
"*"
key is special and can be used to match any action type.
Typescript Type
1
import
{
EventsMap
}
from
'redux-beacon'
;
Copied!
Usage
Getting Started
Examples & Recipes
Previous
EventDefinition
Next
EventsMapper
Last modified
4yr ago
Copy link
Contents
Syntax
Rules
Typescript Type
Usage