Added
- When running on iOS 14 or equivalent, various parts of Relay.swift will now emit more debug logging, which can help track the flow of requests and data through the store.
Changed
- The
cacheConfig
parameter passed to a Network Layer's execute
method now includes a force
property. When this property is true
, the network layer should skip any response cache it may be using and always perform the network request. Note that this does not affect any caching of data that Relay.swift itself may be doing.
- @RefetchableFragment supports refetching with variables that will change which node the fragment is targeting. If you refetch with variables that point to a different record, the fragment will show data and receive updates for that record rather than the original one it first rendered.
- When a view using a @Query is disposed, there is now a five-second delay before the query is released and garbage collection is triggered. This was added to workaround an iOS 14 beta bug, though that bug has been fixed in beta 4. Even so, this change is being left in to allow a bit of tolerance for a transition between two views that use the same query.
Fixed
- The garbage collector will correctly mark references to records through an inline fragment and not delete them.