feat(core): Added additional lifecycle hooks
Specifically: - preInit - postInit - preSetDraft - prePartDraft - postPartDraft - postSetDraft
This commit is contained in:
parent
c5138aad99
commit
04f6852482
3 changed files with 23 additions and 5 deletions
|
@ -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: [],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue