Swift Package Index

FluxorExplorerInterceptor

https://github.com/FluxorOrg/FluxorExplorerInterceptor.git

Intercepting actions and state changes and sending them to FluxorExplorer


Compatibility

  • 3.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 3.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

FluxorExplorerInterceptor

An Interceptor to register on a Fluxor Store. When registered it will send FluxorExplorerSnapshots to FluxorExplorer.

Platforms Swift version Swift PM Twitter

Test Maintainability Test Coverage

⚙️ Usage

To get started with FluxorExplorerInterceptor, just register an instance of it on the Store in an app.

The only thing needed, for FluxorExplorer to receive all actions and state changes from an app, is to register the FluxorExplorerStoreInterceptor in the app's Fluxor Store. When FluxorExplorer and the app are running on the same network (eg. running the app on the iOS Simulator), they will automatically connect and transmit data.

let store = Store(initialState: AppState())
#if DEBUG
store.register(interceptor: FluxorExplorerStoreInterceptor(displayName: UIDevice.current.name))
#endif

NOTE: It is recommended to only register the interceptor in DEBUG builds.