v0.6.0
Added
- New DocFX site for documentation
- Updated docs for CacheTime and StaleTime
- If you're targeting .NET 8, you'll now have proper hot reload support in components containing
<UseEndpoint/>
or<ObserveQuery/>
. This isn't specific to this version of Phetch, but worth mentioning anyway. UseEndpointInfinite.LoadNextPageAsync
now returns the result of the next page query, or throws if the next page can't be loaded yet (e.g., the last page failed).
Changed
- BREAKING CHANGE:
<ObserveQuery/>
no longer detaches queries automatically when disposed. To keep the same behaviour as before, setDetachWhenDisposed="true"
, or explicitly callquery.Dispose()
in theDispose
method of your component. - BREAKING CHANGE: Changed the function signature for the
GetNextPageArg
option of<UseEndpointInfinite/>
. - Removed the
<UseMutationEndpoint/>
component that was previously marked as[Obsolete]
.
Fixed
- Fixed events not being properly unsubscribed when
<ObserveQuery/>
was disposed. - Fixed failed queries in cache not automatically re-fetching if they have previously succeeded.
Development
- Lots more tests.
- Upgraded sample projects to .NET 8
Full Changelog: v0.5.1...v0.6.0