-
-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
triagePending triage by a maintainer to give it proper labelsPending triage by a maintainer to give it proper labels
Description
Describe the bug
current implementations use loading state per resource instance rather than per fetch.
It can be avoided using unique id/timestamp per fetch, and make the loadings become Map<string, boolean>
Reproduction
let foo = $state("")
const rs = resource(() => foo, async (foo, _, { signal }) => fetch(foo, { signal }))
// repeatedly assign foo, user input in search
foo = searchthis will lead the loading to false
Logs
System Info
-Severity
annoyance
Metadata
Metadata
Assignees
Labels
triagePending triage by a maintainer to give it proper labelsPending triage by a maintainer to give it proper labels