-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugConfirmed bugConfirmed bug
Description
If we call ready() in parallel, the onReady hooks are triggered twice
import fastify from './fastify.js'
const app = fastify()
app.addHook('onReady', async function () {
console.log('onReady')
})
await Promise.race([app.ready(), app.ready()])
await app.ready()Note that this is also a problem when using inject()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugConfirmed bugConfirmed bug