fastify/avvio

Pass context to ready and after

mcdonnelldean opened this issue · 3 comments

This allows these functions to be written in other modules. consider the following.

// some setup function that handles post plugin
// loading for some icky plugin.
module.exports = function (context, done) {
  // I can use the context without issue now
  context.dispatch('comms:open')
  done()
}

Yeah! PR?

It's on the list :D

Fixed in v0.5.0.