Defining custom devToolsOptions
Last updated
Was this helpful?
Last updated
Was this helpful?
The Aurelia Store plugin seamlessly integrates with the Redux DevTools browser extension, providing a powerful way to debug and visualize your application's state changes. You can customize the behavior of the Redux DevTools integration by passing a devToolsOptions
object during plugin registration.
Available Options:
The devToolsOptions
object accepts the same options as the redux-devtools-extension
itself. You can find the complete list of options in the .
Example: Disabling State Serialization
By default, the Redux DevTools extension serializes the state before sending it to the extension. This can be problematic if your state contains non-serializable objects (e.g., functions, circular references). You can disable serialization by setting the serialize
option to false
:
Other Common Options:
name
: Sets the instance name in the Redux DevTools. Useful if you have multiple stores or applications on the same page.
maxAge
: Specifies the maximum number of actions to hold in the history (similar to the limit
option for the built-in history).
latency
: Sets the maximum delay between a state change and the DevTools update.