Skip to content

2.0.0-beta.4 Mounting a Loading using a Show with callback children loads forever #2642

@GabbeV

Description

@GabbeV

Describe the bug

The following code results in Loading... forever while rerunning the async work in Component continuously.
<Show when={show()}>{() => <Loading fallback="Loading..."><Component /></Loading>}</Show>

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-tp2qog8w?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

  1. Open repro
  2. Click button
  3. Observe the Loading... text never going away and "async" getting logged to the console every second

Expected behavior

The Loading boundary reveals once all async work is done.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome, Firefox

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions