I use collection
2, simpleSchema
and autoform
.
And now I try collection hooks
.
Does it have problem with load order? If have, I should which before…
I should use collection hooks
on client or server (recommendation).
I found big problem for me: you can’t use hook before.insert and pass validation on collection2/simpleSchema.
I mean, if fields required
Wow, I want to record user events (audit)
by using this package.
How to solve?
Mark fields as not required (-: Or like blackbox
Fields, which you want to use in hooks.
but now I tried, it is OK (set collection hooks on server).
Strange…because validation always before insert…if you use required fields in before.insert hook, when you can’t pass validation…very strange, I could not do it
This thread https://github.com/matb33/meteor-collection-hooks/issues/109
If validation fails then there is no insert/update and if there isn’t an insert/update the before.insert/update hooks won’t run. Which I feel is correct.
I am not sour, how it work?
Now I tried use collection-hooks
on client
, when autoform
validation is error the hooks still running (before hooks).
How to solve?