Home Reference Source Repository
import ModelAccess from 'f.lux/src/collection/ModelAccess.js'
public class | source

ModelAccess

Extends:

Access → ModelAccess

Method Summary

Public Methods
public

create$ForChild(childImpl: *): *

Inherited Summary

From class Access
public

[_impl]: *

public

Copies the current actual state for later reset using Property#resetToCheckpoint.

public

Clears an existing checkpoint created using Property#checkpoint.

public

Gets the path from root property using a dot (.) separator.

public

Gets the checkpoint state previously recorded using Property#checkpoint.

public

Gets if an existing checkpoint has be created using Property#checkpoint.

public

Gets if the shadow state property is proxying the current actual state contained in the f.lux store.

public

Gets if the property allows for assignment through the shadow state, ie todo.desc = "go skiing".

public

Gets if the shadow property has experienced a mutation action.

public

Gets the current shadow state for this property.

public

Gets the next actual state for this property following any pending actions.

public

path(): []

Gets the Property#name components from the root property to this property.

public

pid(): number

Gets the unique f.lux ID for this property.

public

Gets the Property managing this shadow property.

public

Replaces the current property state with a checkpoint state previously recorded using Property#checkpoint.

public

Gets the top-level shadow from the Store containing this shadow state property.

public

shadow(): *

public

Gets the path from root property using a slash (/) separator.

public

Gets the actual state being shadowed.

public

Gets the {@Link Store} containing the application state.

public

update(callback: *)

Performs an update on the state values.

public

waitFor(callback: function(shadow: Shadow))

Registers a one-time no argument callback to be invoked after the next Store state change.

Public Methods

public create$ForChild(childImpl: *): * source

Params:

NameTypeAttributeDescription
childImpl *

Return:

*