async function waitForAllFiles() {
  let observer = new MutationObserver((mutations) => {
    mutations.forEach((mutation) => {
      if (mutation.attributeName == 'class') {
        if (mutation.target.classList.contains('invisible') === true) {
          return Promise.resolve()
        }
      }
    })
  })

  observer.observe(paginationControlRow, { attributes: true })
}
/**
 * waitForAllFiles: watches the pagination control row using a mutation observer and returns once the control row is invisible to the user.
 * This indicates that the paginated data is now completely received by the frontend and ready for us to filter.
 * @return {Promise<Void>} An empty promise to indicate all data from the backend has been received.
 */
watches the pagination control row using a mutation observer and returns once the control row is invisible to the user.
This indicates that the paginated data is now completely received by the frontend and ready for us to filter.
@return {Promise} An empty promise to indicate all data from the backend has been received.
watches the pagination control row using a mutation observer and returns once the control row is invisible to the user . This indicates that the paginated data is now completely received by the frontend and ready for us to filter . @return { Promise } An empty promise to indicate all data from the backend has been received .
async function waitForAllFiles() {
  let observer = new MutationObserver((mutations) => {
    mutations.forEach((mutation) => {
      if (mutation.attributeName == 'class') {
        if (mutation.target.classList.contains('invisible') === true) {
          return Promise.resolve()
        }
      }
    })
  })
  observer.observe(paginationControlRow, { attributes: true })
}
async function waitForAllFiles ( ) { let observer = new MutationObserver ( ( mutations ) => { mutations . forEach ( ( mutation ) => { if ( mutation . attributeName == 'class' ) { if ( mutation . target . classList . contains ( 'invisible' ) === true ) { return Promise . resolve ( ) } } } ) } ) observer . observe ( paginationControlRow , { attributes : true } ) }
waitForAllFiles: watches the pagination control row using a mutation observer and returns once the control row is invisible to the user.
waitForAllFiles : watches the pagination control row using a mutation observer and returns once the control row is invisible to the user .