Skip to content
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

[BUG] <Show isLoading={true}> with Material UI doesn't show loading spinner #5668

Open
rners01 opened this issue Feb 22, 2024 · 9 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@rners01
Copy link

rners01 commented Feb 22, 2024

Describe the bug

<Show isLoading={true}> with Material UI doesn't show loading spinner

Steps To Reproduce

  1. Create view with isLoading prop set to true
  2. Observe no spinner shown

Expected behavior

Spinner on isLoading=true

Packages

"@refinedev/cli": "2.16.24",
"@refinedev/core": "4.47.1",
"@refinedev/kbar": "1.3.6",
"@refinedev/mui": "5.14.4",
"@refinedev/react-hook-form": "4.8.14",
"@refinedev/react-router-v6": "4.5.5",
"@refinedev/simple-rest": "5.0.2",

Additional Context

No response

@rners01 rners01 added the bug Something isn't working label Feb 22, 2024
@rners01 rners01 changed the title [BUG] <Show isLoading={true}> with Material UI doesn't show loader spinner [BUG] <Show isLoading={true}> with Material UI doesn't show loading spinner Feb 22, 2024
@issa012
Copy link
Contributor

issa012 commented Feb 23, 2024

Hello, I tried to recreate this bug. It is working as you said, there is no loading spinner. However, I think that is the expected behavior. When loading, the component doesn't show a loading spinner, but disables the refresh button. I found that here in the documentation:
https://refine.dev/docs/ui-integrations/material-ui/components/basic-views/show/#isloading

@BatuhanW
Copy link
Member

Thanks for the explanation, @issa012. As mentioned you can use this prop to disable refresh button.

@BatuhanW BatuhanW closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
@rners01
Copy link
Author

rners01 commented Feb 29, 2024

@BatuhanW @issa012
It's not looking pretty with default values displaying first and then jumping to the API data.
Also Mantine and Ant UI integrations have loading spinner for such scenarios, that's why I though it could be the bug.
So there's no plan to add spinner?

@BatuhanW
Copy link
Member

@rners01 While it's not a bug, we are open to contributions if someone would like to work on this one.

@issa012
Copy link
Contributor

issa012 commented Feb 29, 2024

I can try, if you assign this to me.

@BatuhanW
Copy link
Member

Sure, assigned to you. 🚀

@rners01
Copy link
Author

rners01 commented Feb 29, 2024

@BatuhanW wrong assigned, should've been @issa012 (:

@rners01
Copy link
Author

rners01 commented Apr 12, 2024

@BatuhanW Was the feature merged?

@omeraplak omeraplak reopened this Apr 17, 2024
@omeraplak omeraplak added the good first issue Good for newcomers label Apr 17, 2024
@0xJaskeerat
Copy link

Hey @rners01 @BatuhanW
I would love to try on this issue , can you please assign me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants