Issue #513
A publisher that emits before the object has changed
Use workaround DispatchQueue
to wait another run loop to access newValue
.onReceive(store.objectWillChange, perform: {
DispatchQueue.main.async {
self.reload()
}
})
func reload() {
self.isFavorite = store.isFavorite(country: country)
}