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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: