Class: StateFactory

StateFactory(handlerFactoryClass)

Factory for creating reactive state objects.

Constructor

new StateFactory(handlerFactoryClass)

Parameters:
Name Type Description
handlerFactoryClass
Source:

Classes

StateFactory

Members

handlerFactoryClass

Source:

Methods

create(initialStateopt, optionsopt) → {Proxy}

Creates a reactive proxy for the given initial state.

Parameters:
Name Type Attributes Default Description
initialState Object <optional>
{}

The initial state object.

options Object <optional>
{}

Configuration options for the proxy handler.

Source:
Returns:

The reactive state proxy.

Type
Proxy