Replies: 5 comments
-
Yes, you can just use Ternary (if) with a useState(true), if it is true (?), while your data is fetching, render the bar image. When the fetch is finished, set the state to false,then ( : ) then display: none or something on the image. there are another solutions, but this is the most simple. |
Beta Was this translation helpful? Give feedback.
-
This issue is being marked as stale (no activity in the last 14 days) |
Beta Was this translation helpful? Give feedback.
-
This issue has been detected as stale and automatically closed. It's very likely that your issue has remained here this long because it would require breaking changes to v7. React Table v8 is currently in alpha (soon beta!) and already contains bug fixes, performance improvements and architectural changes that likely address this issue.
|
Beta Was this translation helpful? Give feedback.
-
Can you provide a sample by using stackblitz? it is easier to understand. |
Beta Was this translation helpful? Give feedback.
-
This is a markup question that doesn't really have to do with react-table's core. Going to convert to a discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Goal:
Display a loading bar, in the table, during the time when you retrieve the data from backend.
Problem:
Is it possible to do it?
Codesandbox:
https://codesandbox.io/s/exciting-ganguly-7w2d84
Info:
*Tried find some information in documenation but nothing is written about it.
*New in react table.
Thank you!
App.js
makeData.js
Beta Was this translation helpful? Give feedback.
All reactions