ractive.reset()

Resets the entire ractive.data object and updates the DOM. This differs from ractive.set() in the following way:

ractive = new Ractive({
  // ...,
  data: { foo: 1 }
});
ractive.set({ bar: 2 });
console.log( ractive.get() ); // { foo: 1, bar: 2 }
ractive.reset({ bar: 2 });
console.log( ractive.get() ); // { bar: 2 }

ractive.reset([ data ])

Returns a Promise (see Promises)

data Object

The data to reset with. Defaults to {}.