Skip to content

Commit c9f4ff9

Browse files
authored
Update ErrorView preview for 0.4.0 API changes (#1505)
* Update ErrorView preview for 0.4.0 API changes * Update CHANGELOG
1 parent cdc3347 commit c9f4ff9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Swift 6 is now required to build LiveView Native applications
2020
- `Section` now uses the `isExpanded` and `phx-change` attributes to enable collapsing in sidebar-styled `List` views
2121
- `liveview-native-core` has been updated to v0.4.0, and is now used for all internal networking
22+
- `LiveConnectionError` was removed, use error types from `LiveViewNativeCore` instead
2223

2324
### Fixed
2425
- Views will now update properly when the server changes the value of a form field (#1483)

priv/templates/lvn.swiftui.gen/xcodegen/TemplateApp/ErrorView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import SwiftUI
77
import LiveViewNative
8+
import LiveViewNativeCore
89

910
struct ErrorView: View {
1011
let error: Error
@@ -102,5 +103,5 @@ struct ErrorView: View {
102103
}
103104

104105
#Preview {
105-
ErrorView(error: LiveConnectionError.initialParseError(missingOrInvalid: .csrfToken))
106+
ErrorView(error: LiveSocketError.NoDocumentInJoinPayload)
106107
}

0 commit comments

Comments
 (0)