Skip to content

Commit

Permalink
fix(ios): save component state after an update (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Westin Newell committed Nov 14, 2019
1 parent b524ae5 commit 6e2b6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/targets/sources/ios/core/Diez.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ extension Diez: UpdateObserverDelegate {

private func resultForUpdate(with body: String) -> AttachResult {
do {
let component = try decoder.decode(T.self, from: Data(body.utf8))
component = try decoder.decode(T.self, from: Data(body.utf8))
return .success(component)
} catch {
guard let decodingError = error as? DecodingError else {
Expand Down

0 comments on commit 6e2b6af

Please sign in to comment.