1
0
Fork 0

feat(core): Added additional lifecycle hooks

Specifically:

- preInit
- postInit
- preSetDraft
- prePartDraft
- postPartDraft
- postSetDraft
This commit is contained in:
Joost De Cock 2022-09-18 22:48:55 +02:00
parent c5138aad99
commit 04f6852482
3 changed files with 23 additions and 5 deletions

View file

@ -8,12 +8,18 @@ describe('Hooks', () => {
const pattern = new Pattern()
const h = pattern.hooks
const test = {
preInit: [],
postInit: [],
preDraft: [],
preSetDraft: [],
prePartDraft: [],
postPartDraft: [],
postSetDraft: [],
postDraft: [],
postLayout: [],
preSample: [],
postSample: [],
preRender: [],
postLayout: [],
postRender: [],
insertText: [],
}