Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 1.15 KB

Extensions

Both createMiddleware and createMetaReducer accept an optional extensions object as their third parameter. If provided, an extensions object should have at least one of the following properties:

{
  logger,
  offlineStorage,
}

Each property corresponds to a different type of extension that Redux Beacon supports:

As an added convenience we maintain some prebuilt extension constructors:

Extension Type Extension Constructor
logger logger
offlineStorage offlineWeb
offlineStorage offlineReactNative

logger extensions

logger extensions provide a means to log events after they are created.

offlineStorage extensions

offlineStorage extensions provide a means to record analytics events even when your app is offline. An offlineStorage extension should have three methods: saveEvents, purgeEvents, and isConnected.