Redux Beacon
  • Introduction
  • Getting Started (Redux)
  • Getting Started (ngrx)
  • Examples & Recipes
  • Targets
    • GoogleAnalytics
    • GoogleAnalyticsGtag
    • GoogleTagManager
    • Segment
    • Amplitude
    • React Native: GoogleAnalytics
    • React Native: GoogleTagManager
    • React Native: Segment
  • API Reference
    • createMiddleware
    • createMetaReducer
    • EventDefinition
    • EventsMap
    • EventsMapper
  • Extensions
    • logger
    • OfflineWeb
    • OfflineReactNative
  • Utils
    • debounceEvent
    • ensure
    • combineEvents
  • FAQ
  • Migration Guide (v1 to v2)
  • Notes on Offline Events
Powered by GitBook
On this page
  • logger extensions
  • offlineStorage extensions

Extensions

PreviousEventsMapperNextlogger

Last updated 7 years ago

Both createMiddleware and 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

offlineStorage

offlineStorage

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.

createMetaReducer
offlineStorage extensions
logger extensions
logger
offlineWeb
offlineReactNative