UserStore

UserStore

A data store to store User models.

Constructor

new UserStore()

Source:

Extends

Methods

fetch(name, cacheopt) → {Promise.<User>}

Source:

Obtains a user from the site, or the user cache if it's already available

Parameters:
Name Type Attributes Default Description
name string

Name of the user

cache boolean <optional>
true

Whether to cache the new user object if it isn't already

Returns:
Type
Promise.<User>

resolve(nameOrInstance) → (nullable) {Object}

Source:
Inherited From:

Resolves a data entry to a data Object.

Parameters:
Name Type Description
nameOrInstance string | Object

The id or instance of something in this DataStore

Returns:

An instance from this DataStore

Type
Object