Skip to content

v0.7.0

Compare
Choose a tag to compare
@Jcparkyn Jcparkyn released this 04 May 04:45
· 21 commits to main since this release

Added

  • The non-generic QueryOptions class can now be implicitly cast to QueryOptions<TArg, TResult>.
  • New DataChanged event for queries, which is triggered whenever the Data property changes.

Changed

  • BREAKING CHANGE: If a query succeeds and then fails on a refetch, query.Data now returns null/default, instead of the old data. Also, query.LastData now returns the data from the last successful request (even if the arg was different) instead of null/default.
  • QueryOptions.OnSuccess is now called when a cached result is returned (unless it's stale). Note: EndpointOptions.OnSuccess is unchanged, and still won't be called when a cached result is returned.

Development

  • More tests.
  • Sample project improvements.