← Home

Elder.js Hook: bootstrap

bootstrap : Routes, plugins, and hooks have been collected and validated.
  • Often used to populate the empty query object with a database or API connection as query is passed to the all() function which is used to generate request objects.
  • Internally used to automatically populate the helpers object with the helpers found in './src/helpers/index.js'.
  • Can be used to set information on the data object that is needed throughout the entire lifecycle. (sitewide settings)
Props :
helpers
data
settings
routes
hooks
query
errors
Mutable :
errors
helpers
data
settings
query
Stable · Location: Elder.ts
Elder.js hook Lifecycle