Implemented the reset method for the persisted store as described in issue #263. This method discards all changes and resets both the store and the localStorage value to the initialValue provided.
Key changes include:
Introduced a new Persisted type that extends the Writable interface with a reset() method.
Implemented the
reset
method for the persisted store as described in issue #263. This method discards all changes and resets both the store and thelocalStorage
value to theinitialValue
provided.Key changes include:
Persisted
type that extends theWritable
interface with areset()
method.reset()
method to the store object.