Top-Level API

Marty.createApplication(constructor)

Creates a application class with the given constructor.

Marty.createStore(properties)

Creates a store class with the given properties.

Marty.createQueries(properties)

Register queries class with the given properties.

Marty.createStateSource(properties)

Register a state source class with the given properties.

Marty.createActionCreators(properties)

Register action creators class with the given properties.

Marty.createStateMixin(options)

Creates a state mixin.

Marty.createConstants(options)

Creates constants.

Marty.createContainer(InnerComponent, options)

Wraps the component with a container component that is responsible for fetching state from stores and passing it to the inner component.

Marty.isServer

True if the current process is being executed within node.js or io.js.

Marty.isBrowser

True if the current process is being executed within a browser.

Marty.warnings

Configurable list of warnings that Marty emits. Setting the key to false will stop the warning from happening. We will warn you when a feature is being deprecated so disabling warnings can make upgrading difficult in the future.

Marty.warnings.reservedFunction = false;

Marty.warnings.without(warningsToDisable*, callback, [context])

Disables a warning for the duration of the callback.

Marty.warnings.without(['reservedFunction', 'superNotCalledWithOptions'], function () {
  // do something evil
});

Marty.version

The current version of Marty.