Skip to content

bug: dismiss function returned from useIonLoading hook is not working on 5.8.2 #24030

Closed
@rabianr

Description

@rabianr

Prerequisites

Ionic Framework Version

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

Current Behavior

The dismiss function returned from useIonLoading hook is not working.
On 5.8.1 the dismiss function is working as expected.

Expected Behavior

The loading should be dismissed when calling dismiss function

Steps to Reproduce

  • Use useIonLoading hook
  • Call present then call dismiss in a setTimeout block

Code Reproduction URL

https://codesandbox.io/s/ecstatic-germain-7czxq

Ionic Info

Ionic Framework : @ionic/react 5.8.2

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions