An Interceptor to register on a Fluxor Store. When registered it will send FluxorExplorerSnapshots to FluxorExplorer.
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 FluxorExplorerInterceptor
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: FluxorExplorerInterceptor(displayName: UIDevice.current.name))
#endif
NOTE: It is recommended to only register the interceptor in DEBUG
builds.