List of all possible Iron Router built-in hooks?


#1

In the Discover Meteor book, there’s this bit of code: (my version is in CoffeeScript)

Router.onBeforeAction 'dataNotFound', {only: 'postPage'}

How would I have known to use dataNotFound? Is there a full list somewhere of all the built-in hooks and what they do?


#2

#3

Ah, I see. So there’s only loading and dataNotFound. :stuck_out_tongue_closed_eyes: Short list!

Thanks for that.


#4

Yep :slight_smile: But you can freely add yours.