postInit

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

Signature

Javascript
null hook(Pattern pattern)

Example

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

Notes

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