A partial reimplementation of Redux DevTools, a diagnostic tool for applications that use Redux as a state management solution. This tool works with a slightly modified version of Redux.NET, which is included in this package.
- Recorded history list of all dispatched actions
- Collapsible, JSON-formatted action, state, and diff views for each recorded action
- Stack trace listing for each history step
- Dispatcher that takes JSON text and serializes it to defined action objects
You can install this package through Unity's Package Manager via Git URL.
From Window > Package Manager...
Click the '+' symbol in the upper-left, and select "Add package from git URL":
In the resulting text field, paste the following URL:
https://github.com/RolandMQuiros/redux-dev-tools
After recompiling, Redux DevTools should be listed in your installed packages:
Navigate to Window > Analysis > Redux DevTools
to open the DevTools dialog.
If you do not have a Redux.DevTools.DevToolsSession
asset in your project, opening the dialog from the above menu will create on in your root Assets/
folder. We'll be using this to attach to your store later.
Wherever you instantiate your Store
object, for example in a MonoBehaviour
or ScriptableObject
, include DevToolsSession.Install<TState>()
as one of the additional middleware parameters:
[SerializeField] private DevToolsSession _session = null;
public IStore<State> Store;
// ...
Store = new Store<State>(
MainReducer.Reduce,
new State(),
_session.Install<State>()
);
Afterwards, every call to Store<TState>.Dispatch
will be recorded in the DevToolsSession
history.