Class: StateFactory

StateFactory(handlerFactoryClassopt)

Factory for creating reactive state objects.

Constructor

new StateFactory(handlerFactoryClassopt)

Parameters:
Name Type Attributes Description
handlerFactoryClass function <optional>

The factory class to create proxy handlers.

Source:

Classes

StateFactory

Members

handlerFactoryClass :function

Type:
  • function
Source:

Methods

create(initialStateopt, optionsopt) → {Proxy}

Creates a reactive proxy for the given initial state.

Parameters:
Name Type Attributes 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