robert-hooke icon indicating copy to clipboard operation
robert-hooke copied to clipboard

Ordering is not guaranteed on hook execution

Open jstoneham opened this issue 11 years ago • 6 comments

I expected hooks to wrap each other (i.e., to be executed in the opposite order that they were added). They don't - because they're added to a hash-map, they are executed in whichever order 'vals' returns them in. It would be useful to use a map instead that remembered insertion order and work in reverse to get this behavior.

jstoneham avatar Apr 11 '13 19:04 jstoneham