clay.js
  1. ClayJS
  2. Advanced
  3. Setup
  4. Advanced satellites

Advanced satellites

Low-level satellite exports for plugin authors and code that sits inside the ClayJS mutation and save lifecycle.

For plugin authors and code that sits inside the save cycle; for the everyday script-tag libraries, see Satellites.

clay.Mutation exported#

The shared mutation hub that autosave and live sync sit on. clay.Mutation.onAnyChange(opts, cb) respects clay="no-watch" regions so your observers and clayjs’s agree about what counts as a change.

clay-internals.js#

The pieces clayjs builds itself out of, for code that sits inside the save lifecycle.