jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.05k stars 413 forks source link

Using in NextJs project,but got "Expected server HTML to contain a matching <span> in <nav>. " #1103

Closed yourmoonlight closed 1 year ago

yourmoonlight commented 2 years ago

Describe the bug

A clear and concise description of what the bug is.

I have no idea why this error came out.

Warning: Expected server HTML to contain a matching in

abdulsamadayoade commented 2 years ago

I'm facing the same issue too

krmgumus commented 2 years ago

I had a some issue and solved like this Match the Pagination to router.isReady

 const router = useRouter();

   <DataTable
            title="Countries"
            columns={columns}
            data={filteredData}
            defaultSortFieldId={1}
            selectableRows
            pagination={router.isReady}
            paginationServer={false}
            paginationIconFirstPage
            onSelectedRowsChange={(e) => handleSelected(e.selectedRows)}
          />