You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs contain contradictions regarding the purpose of resources:
You can use a Resource to perform any kind of async operation, but the most common use-case for Resource is fetching data from a server. The following example creates a resource to fetch some user data.
Note that resource is intended for read operations, not operations which perform mutations. resource will cancel in-progress loads via the AbortSignal when destroyed or when a new request object becomes available, which could prematurely abort mutations.
Describe what you want to experience that would fix the problem
Preferably, expand resource to consider mutations as a viable use-case. I understand this would require reconsidering the AbortSignal and it may be better suited for a separate API.
Regardless, the docs should be consistent.
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can
Activity
JeanMeche commentedon Feb 16, 2025
This topic will be discussed/explained as part of an upcoming RFC (around the release of 19.2 in about 10 days).
JeanMeche commentedon Feb 19, 2025
We'll update the docs when the RFC is closed an we have a better confidence on the shape of the APIs/features.
angular-automatic-lock-bot commentedon Mar 22, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.