327 B
327 B
title |
---|
postDraft |
The postDraft
lifecycle hook runs just after your pattern is drafted.
Signature
null hook(Pattern pattern)
Example
pattern.on('postDraft', pattern => {
// Mutate the pattern object here
}
Notes
The postDraft
hook is rarely used, but it's there if you need it.