Skip to main content

postInit

The postInit lifecycle hook runs just after a pattern is initialized.

Signature​

null hook(Pattern pattern)

Example​

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

Notes​

The postInit hook is rarely used, but it's there if you need it.