Repository navigation
🎉 Version 1.0! No new features, but after much procrastination I'm confident that Phetch is stable and ready to release properly.
Changed
- BREAKING CHANGE:
SetArgAsync,RefetchAsync, andTriggerAsyncno longer throw an exception if the query function fails, and instead return aQueryResult<T>type which is either a success or failure.- This makes them safer to use as callbacks in your Blazor components, but in most cases you should still use the non-async versions (
SetArg,Refetch,Trigger). - To migrate code using these methods without changing the functionality, simply replace
await query.SetArgAsync(..)with(await query.SetArgAsync(..)).GetOrThrow().
- This makes them safer to use as callbacks in your Blazor components, but in most cases you should still use the non-async versions (
Removed
- BREAKING CHANGE: Removed the old
Mutation<TArg>class which was previously marked obsolete. UseQuery<TArg, Unit>instead, which is equivalent. - BREAKING CHANGE: Removed the old
Skipoption on<UseEndpoint/>, which was previously marked obsolete. UseAutoFetchinstead.