gregnb / gregnb/mui-datatables

Showing empty data string placeholder for few seconds on first render

Open
#1,931 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

I'm using V4.2.2 with react 18.
The issue is that I see the empty state string for a few seconds on the first render
I'm using if(!data) before the render of the table so the data is exist when it gets to the MUIDataTable component

Any suggestion?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the first render with React 18, MUIDataTable, and the reported conditional data check. Start at the MUIDataTable entry point and determine why the empty-state string appears before the populated data; done means the initial render no longer shows the placeholder when data already exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.