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
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
... the hooks are getting executed in reverse order, so setOwner in this case is running before requireAuth. In my opinion, they should be running in the order listed in the array.
I'm running feathers-hooks version 0.4.0 on top of feathers 1.0.0.
The text was updated successfully, but these errors were encountered:
I started working on a rewrite of the hooks internals that stores all hooks in an array and runs them in the order they are registered (instead of reversed as mentioned in #14). I guess this would be a breaking change but since we are still in 0.x I would think that is ok for a v0.5.
That seems fine to me, especially if we will still be using the same syntax to register the hooks. And it's really giving what I would consider the expected outcome for new users, anyway. Sounds good.
—
Sent from Mailbox
On Wed, Dec 31, 2014 at 4:57 PM, David Luecke [email protected]
wrote:
I started working on a rewrite of the hooks internals that stores all hooks in an array and runs them in the order they are registered (instead of reversed as mentioned in #14). I guess this would be a breaking change but since we are still in 0.x I would think that is ok for a v0.5.
Reply to this email directly or view it on GitHub: #13 (comment)
When setting up hooks like this:
... the hooks are getting executed in reverse order, so setOwner in this case is running before requireAuth. In my opinion, they should be running in the order listed in the array.
I'm running feathers-hooks version 0.4.0 on top of feathers 1.0.0.
The text was updated successfully, but these errors were encountered: