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
I use hookable on bussiness project, and made a communication beetween big modules with callHook.
in my project a make a class extender for Hookables.js. Code as below.
make this, because have a problem with 30-40 not-unique hooks, with function - it was a big problem.
my "on" method:
makes a unique check in hookables private this._hooks
makes a dev log event
I real need this in this project, because have a factory-generation code with no-unique symbols and name of the functions.
And I suggest making a public and secure getter, because now i just use "eslint ignore dot-notation" for use private variable.
Describe the feature
on
hookable.ts
- just need a getter like thisI use hookable on bussiness project, and made a communication beetween big modules with callHook.
in my project a make a class extender for Hookables.js. Code as below.
make this, because have a problem with 30-40 not-unique hooks, with function - it was a big problem.
my "on" method:
I real need this in this project, because have a factory-generation code with no-unique symbols and name of the functions.
And I suggest making a public and secure getter, because now i just use "eslint ignore dot-notation" for use private variable.
Additional information
The text was updated successfully, but these errors were encountered: