Skip to content

v2.0.0

Compare
Choose a tag to compare
@zalmoxisus zalmoxisus released this 01 Jun 12:47
· 538 commits to master since this release

Support multiple Redux stores in one tab

To identify stores you can pass the instanceId parameter to the enhancer: window.devToolsExtension({ name: 'Widget', instanceId: 'widgetId' }).
It's not required. If this parameter is not specified, there will be generated a random id.

Create Redux store right in the extension

Note: This is not intended to replace Redux' createStore. Use this approach only when you want to inspect changes outside of Redux or when not using Redux inside your application.

Used as window.devToolsExtension(reducer, [preloadedState, config]).

See API and the example of usage.

Communicate with the extension directly

Use the following methods of window.devToolsExtension:

See a simple example of using window.devToolsExtension.connect to send changes to the extension directly without using Redux. Also, here is more complex example of using the extension for @ngrx/store.