Skip to content

clearAll() per namespace? #300

Description

@bblimke

Is there a way to clear store for only one namespace?

When I create multiple stores with different namespaces and I call clearAll on any of them,
it clears the data from all the stores.

var ns1 = store.namespace('ns1')
var ns2 = store.namespace('ns2')
ns1.set('foo', 'bar1')
ns2.set('foo', 'bar2')
ns1.get('foo') == 'bar1'
ns2.get('foo') == 'bar2'

ns1.clearAll()
ns1.get('foo')  //undefined
ns2.get('foo')  //undefined

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions