Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
Render static HTML before getServerSideProps return

I have a nextjs page that has some static html and one table that fetchs data from a database. Right now when I navigate to this page it only shows up after the database return its data.

I want to show the data immediately upon the user navigate to the page and then I can wait to fill the table with data.

export const getServerSideProps = async (context) => {

        console.log('Fetching AWS data');
        // Fetch the data...
        return { props: { rowData: response } }
    }

export default function Digest({ rowData }) {

    return <>
        // I want to render this h1 tag below
        // before the getServerSideProps returns its values
        <h1>Newsletter</h1>  
        <NewsletterTable rowData={rowData} />
    </>
    }

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!