beforePage(next) {
    return Promise.all(this.getComponents().map((comp) => comp.beforePage(next)));
  }
Allow components to hook into the next page trigger to perform their own logic.
@param {Function} next - The callback to continue to the next page.
@returns {Promise} - A promise when the page has been processed.