You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The pre/post export hooks loop through objects even if there are no hooks to be applied.
Describe the solution you'd like
A way to bypass looping through objects if there are no hooks present.
The solution that comes to my mind is to check for hooks when building the components registry and populate a list of export hooks, then check to see if that list has any hooks before looping through all of the objects, if it doesn't then return without looping (this could also be accomplished by using a bool instead of a list).
Describe alternatives you've considered
Modifying the hooks to always return early (effectively disabling them) until we need them, but this isn't ideal as it would cause 3rd party developers to have to re-enable the hooks locally before they could add in hooks to their custom definitions.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The pre/post export hooks loop through objects even if there are no hooks to be applied.
Describe the solution you'd like
A way to bypass looping through objects if there are no hooks present.
The solution that comes to my mind is to check for hooks when building the components registry and populate a list of export hooks, then check to see if that list has any hooks before looping through all of the objects, if it doesn't then return without looping (this could also be accomplished by using a bool instead of a list).
Describe alternatives you've considered
Modifying the hooks to always return early (effectively disabling them) until we need them, but this isn't ideal as it would cause 3rd party developers to have to re-enable the hooks locally before they could add in hooks to their custom definitions.
The text was updated successfully, but these errors were encountered: