Creating a Plugin#
A plugin is basically a class that implements thePlugin interface. This interface contains the following methods:
onReady(): Called when the Store is ready.onSave(): Called when a value is saved or updated in the Store.onRead(): Called when a value is read from the Store.onReducerInvoke(): Called when a reducer is called.onReset(): Called when the Store is reset.
Using a Plugin#
To use a plugin, you need to pass it to thecreateStore() function as part of the configuration object. This object takes in a plugins property which is an array of plugins to use with the Store.
createStore() function.

