Describe the bug
As title, this pattern causes an infinite loop if the async resource still fails after resetting.
<Loading fallback={<div>Loading...</div>}>
<Errored
fallback={(err, reset) => (
<>
<div>{String(err())}</div>
<div>
<button
onClick={() => {
evict(key);
reset();
}}
>
Reset
</button>
<Show when={isPending(data)}>
<div>Resetting...</div>
</Show>
</div>
</>
)}
>
Commenting out the <Show> inside <Errored fallback> works.
Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-nt3kvm81?file=src%2FApp.tsx
Steps to Reproduce the Bug or Issue
- Go to the link above
- Click Refresh until it fails
- Click Reset
- Infinite loop
Expected behavior
No issue, should work.
Screenshots or Videos
No response
Platform
Additional context
No response
Describe the bug
As title, this pattern causes an infinite loop if the async resource still fails after resetting.
Commenting out the
<Show>inside<Errored fallback>works.Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-nt3kvm81?file=src%2FApp.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
No issue, should work.
Screenshots or Videos
No response
Platform
Additional context
No response