Closed jdeepee closed 5 years ago
Possible there could be another wrapping function around definitions which would inject hooks into definition structures based on the current expressions type. Not high level type such as group, but allow more specific fine tuning; eg: pack vs private group vs public group.
Each more specific expression level could also have different validation/commit functions associated with them - INVESTIGATE some more
Currently every time a group is created it is treated to be a pack and thus has these hooks/links created, not every group will be a pack going forward. Same goes for other expression types, although expressions may have the same internal type they may require different hooks/contextual links to be built.
We need a way to allow validation to run before running of hook functions - perhaps validation function could be present which would define the hooks to be made for each expression "type"