Replies: 2 comments
-
Resource is a generic type. The Resource type itself has no assumption about async state which allows to use it for multiple purposes respecting the interface. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Isn't every
Resource
practically aResource<T | undefined>
, since the data needs to be fetched before usable ?So why not
Resource<T>
extending fromAccessor<T | undefined>
instead ? (signal.ts
, line 395) ?4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions