Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export default modelgen hooks #2467

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

atzedus
Copy link
Contributor

@atzedus atzedus commented Dec 12, 2022

When customizing modelgen plugin with FieldHook for example, then we need to copy whole code of defaultFieldMutateHook to our newly created hook. If we forget to do this, then we loose @gotag and @gofield functionality.
With exported code we can simply call it in our custom hook before or after custom code.

I have:

  • Updated any relevant documentation (see docs)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 75.669% when pulling c2ef8d4 on atzedus:exported-modelgen-hooks into 6b8c6ee on 99designs:master.

@StevenACoffman StevenACoffman merged commit da43147 into 99designs:master Dec 13, 2022
@atzedus atzedus deleted the exported-modelgen-hooks branch December 24, 2022 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants