question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: useIonLoading, message container is always rendered even when not using a message

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Using the useIonLoading() hook with the minimum parameters, we have a design error.

useIonLoading bug bug

This element should not render if the message parameter is empty.

bug-example

Expected Behavior

This should be the default behavior. default_behaviour

Steps to Reproduce

Using the <IonLoading isOpen={true} /> component works perfectly. The bug is not in the core. The bug occurs when receiving the default parameters in useIonLoading.

const [present, dismiss] = useIonLoading();
useEffect(()=>{
    present();
}, [])

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.20.3 Ionic Framework : @ionic/react 6.3.4

Capacitor:

Capacitor CLI : not installed @capacitor/android : not installed @capacitor/core : not installed @capacitor/ios : not installed

Utility:

cordova-res : 0.15.4 native-run : not installed globally

System:

NodeJS : v14.16.0 npm : 6.14.11 OS : macOS Monterey

Additional Information

This happens with @ionic/react in version 6.3.4 using the useIonLoading() hook.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sean-perkinscommented, Nov 3, 2022

Appreciate the PR for this!

This has been merged and will be available in both the nightly build and the next patch release of Ionic (6.3.5).

1reaction
bipozacommented, Nov 3, 2022

@liamdebeasi I am preparing a pull request fixing this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message: Container did not respond in time - ShinyProxy
Hello all, I am encountering an issue with my Shiny app. I have built it the “Docker” way using docker-compose to launch the...
Read more >
Loading | Application Loading Indicator Overlay | ion-loading
The ion-loading overlay indicates activity while blocking user interaction. The loading indicator appears on top of the app's content, and can be dismissed....
Read more >
How to Build a Native App from Angular Projects with Capacitor
We'll go through all necessary steps in this tutorial and finally even add on device live reload to our Angular Capacitor app on...
Read more >
How to handle uncaughtException in react and render a ...
Within the render method you can display some kind of "internal error" message. Share.
Read more >
ionic-framework - bytemeta
bug : · bug: · useIonRouter push state bug · bug: useIonLoading, message container is always rendered even when not using a message....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found