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
I love Eden, so cool so slick... but for production applications I rarely use the client raw, I mostly use it with React Query.
One problem I had with wrapping Eden Treaty or Eden Fetch in a React Query mutation/query is that it doesn't natively throw errors, it returns them as query objects thus requiring me to wrap them and conditionally throw errors for React Query to identify them as Errors.
constquery=useQuery({queryFn: eden.api.something.get});// this would never have errors because no exception is thrown
I believe it would be fantastic if there was first class support for React Query (maybe an EdenQuery like EdenFetch).
A killer feature would be for users to define query keys in their routes and the React Query client would invalidate accordingly.
That's my 2 cents. Love the library, love the work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I love Eden, so cool so slick... but for production applications I rarely use the client raw, I mostly use it with React Query.
One problem I had with wrapping Eden Treaty or Eden Fetch in a React Query mutation/query is that it doesn't natively throw errors, it returns them as query objects thus requiring me to wrap them and conditionally throw errors for React Query to identify them as Errors.
I believe it would be fantastic if there was first class support for React Query (maybe an
EdenQuery
likeEdenFetch
).A killer feature would be for users to define query keys in their routes and the React Query client would invalidate accordingly.
That's my 2 cents. Love the library, love the work.
Beta Was this translation helpful? Give feedback.
All reactions