Replies: 2 comments
-
Most Angular developers work with the HTTP client, which returns an observable, so I think it's not more than "nice to have". |
Beta Was this translation helpful? Give feedback.
0 replies
-
I like the suggestion, since Angular also allow |
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
-
Which @ngneat/query-* package(s) are relevant/releated to the feature request?
query
Description
I would like to use a basic async function as the queryFn.
For example this one:
Proposed solution
Add the extra types for all of the exported functions, so they will accept basic async functions where they can, instead of only supporting observables. Check if the queryFn returns a promise or observable. If it returns a promise, then use that/wrap it with
from
.Alternatives considered
Wrapping every promise in
from
, but I would like cleaner code.Do you want to create a pull request?
No
Beta Was this translation helpful? Give feedback.
All reactions