overReactReduxDevToolsMiddlewareFactory function

MiddlewareClass overReactReduxDevToolsMiddlewareFactory({
  1. String? name,
})

A Middleware that can be added to a DevToolsStore in order to utilize the Redux DevTools browser extension. Similar to overReactReduxDevToolsMiddleware, but allows passing of options to initialize dev tools with.

Arguments:

  • name - the instance name to be shown on the monitor page. Default value is document.title. If not specified and there's no document title, it will consist of tabId and instanceId. Use this if your page has multiple stores.

Example:

var store = new DevToolsStore<AppState>(
  /*YourReducer*/,
  initialState: /*YourInitialState*/,
  middleware: [overReactReduxDevToolsMiddlewareFactory(name: 'My Store')],
);

Implementation

MiddlewareClass overReactReduxDevToolsMiddlewareFactory({
  String? name,
}) => _OverReactReduxDevToolsMiddleware({
  if (name != null) 'name': name,
});