Extensions
Last updated
Last updated
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:
Each property corresponds to a different type of extension that Redux Beacon supports:
As an added convenience we maintain some prebuilt extension constructors:
logger
extensions provide a means to log events after they are created.
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
.
Extension Type
Extension Constructor
logger
offlineStorage
offlineStorage