-
-
Notifications
You must be signed in to change notification settings - Fork 990
Refactor: Rename loading
to _loading
and optimize createResource
logic to prevent conflicts and improve resource management.
#2533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0223e3c The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
createResource
with improved inspection and serialization logic
Pull Request Test Coverage Report for Build 17024021319Details
💛 - Coveralls |
p = new Promise(resolve => { | ||
setTimeout(() => { | ||
resolve(temp.then(val => handleResolvedValue(val, ctx, id))); | ||
}, 300); // A safe number that won't throw an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh, no.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've summarized it in #2534 and solidjs/solid-start#1941 (comment), if you're interested.
I apologize for the incorrect review request, I sent a review because I thought I had solved the problem in another way, but it wasn't feasible. Please forget about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iacore I fixed the issue. You can check it out
4c8363e
to
8b0f96e
Compare
createResource
with improved inspection and serialization logic
This commit is a proposal and is being submitted so that it can be part of some option. I understand people's concerns about timeouts, and I've summarized my considerations here. |
16b2e69
to
e66ebc1
Compare
I solved it by overriding loading. |
e66ebc1
to
d3f5257
Compare
createResource
68c3e98
to
9fa4ef9
Compare
createResource
read.loading
with _loading
to avoid variable conflicts and restructure resource handling logic in createResource
9fa4ef9
to
f0186ad
Compare
read.loading
with _loading
to avoid variable conflicts and restructure resource handling logic in createResource
loading
to _loading
and optimize createResource
logic to prevent conflicts and improve resource management.
f0186ad
to
6e43f96
Compare
… logic for improved conflict prevention and resource management.
6e43f96
to
0223e3c
Compare
Summary
Address issue by replacing
loading
with_loading
to avoid variable conflicts and restructure resource handling logic increateResource
It also addresses the specific error in another issue(#2132).
How did you test this change?
Try testing the code in the issue or a short-running async function block with a
createResource
as a fetcher.