Toggle Autosave

Enables or disables autosaving.

Syntax

store.dispatch({ type: "SET_AUTOSAVE_ENABLED", payload: enabled });

Parameters

enabled

A boolean indicating whether the track should autosave.

Examples

Disables autosaving.

store.dispatch({
  type: "SET_AUTOSAVE_ENABLED",
  payload: false
});