The internal, reactive storage object
A list of callbacks used to destroy previously bound watchers
Used to watch a certain store property for changes. Works in the same way your normal vue watchers work, the callback receives two values, the first is the new the second the previous value.
The key of the property to watch
The callback to execute when a property changes
Allows setting additional options for your watcher.
Returns the value of a certain storage key, or the default value if it does not exist
The name of the stored value to extract
An optional default value to return if the given key was not found
Returns the internal store object. Note: be careful with this, or you can break things quite easily.
Returns the internal vue instance we use as reactive store Note: be careful with this, or you can break things quite easily.
Returns true if the store has a value for a given key
This is used to update or set the value of a certain key in the store
The name of the stored value to set
The value to set for the given key
Used to unbind a previously bound callback from watching a property.
The key of the property to unbind the given callback from
The callback to unbind from watching a property.
An alias for bind()
Generated using TypeDoc
This class is a super simple state storage object. It is designed as a super lightweight alternative to vuex in smaller applications.