-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show loading spinner while loading views in List Table #1085
Conversation
✅ This PR has a changeset ✅ Click here to learn what changesets are. |
b9fe03a
to
13b7d4e
Compare
447be8f
to
a79062c
Compare
@mitchellhamilton I broke the integration tests with this change so had to rework things slightly (just moved the Can I get a re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it change the behavior that the user observes? and if so, got some gifs?
const columns = fields.length + 2; | ||
|
||
const TableContents = ({ isLoading, children }) => | ||
console.log({ isLoading }) || ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log({ isLoading }) || ( | |
( |
a79062c
to
efc7f0e
Compare
🤔 Those two test failures were Cypress being silly - both the elements it claims were invisible are in fact visible in the screenshots and videos.
I've added
Nope, it's exactly the same 👍 |
NOTE: PR best viewed with whitespace changes disabled
This moves the loading spinner inside the table which allows the user to interact with the sorting / columns display even while data is loading.
It also implements the things in #1077 so the data and the views can load in parallel.