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
feature: "onView" middleware handler #890
Comments
@jonschlinkert Thanks for the issue! If you're reporting a bug, please be sure to include:
If your issue is related to one of the following, please open an issue there:
|
My $0.02 would be onViewCreate but I like long descriptive naming. ;) And this would require many changes so probably not a good idea (and my .Net may be showing here), I personally prefer including tense with handlers / events (ie. onLoading, onLoaded, onViewCreating, onViewCreated). Again, just throwing it out there and realize that may be a .Net convention not used in the node world. |
Since
.onLoad
is triggered when a view is "loaded" onto a collection, we don't currently have a catchall middleware handler that would be triggered when a collectionless view is created.I propose we call this
onView
, but suggestions are welcome (fwiw,onCreate
isn't good since it would cause ambiguity with the.create
method)The text was updated successfully, but these errors were encountered: