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
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:
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: