1
0
Fork 0
freesewing/sites/dev/docs/reference/hooks/postinit/readme.mdx

24 lines
324 B
Text
Raw Normal View History

2022-09-29 23:43:00 +02:00
---
title: postInit
---
The `postInit` lifecycle hook runs just after a pattern is initialized.
## Signature
```js
null hook(Pattern pattern)
```
## Example
```js
pattern.on('postInit', pattern => {
// Mutate the pattern object here
}
```
## Notes
The `postInit` hook is rarely used, but it's there if you need it.