postDraft

The postDraft lifecycle hook runs just after your pattern is drafted.

Signature

Javascript
null hook(Pattern pattern)

Example

Javascript
pattern.on('postDraft', pattern
 => {
  // Mutate the pattern object here
}

Notes

The postDraft hook is rarely used, but it’s there if you need it.