Skip to content

Commit b3abd9f

Browse files
Merge branch 'main' into client_refactor_0.4.1-rc-3
Signed-off-by: mobile-bungalow <[email protected]>
2 parents 3433de1 + 5b0267b commit b3abd9f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ public class LiveViewCoordinator<R: RootRegistry>: ObservableObject {
247247
patchHandlerCancellable = handler.patchEventSubject
248248
.receive(on: DispatchQueue.main)
249249
.sink { [weak self] patch in
250-
251250
switch patch.data {
252251
case .root:
253252
// when the root changes, update the `NavStackEntry` itself.

Sources/SwiftSyntaxExtensions/ValueResolution.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ public extension FunctionParameterSyntax {
117117
// value.resolve(on: __element, in: __context)
118118
var resolvedAttribute = FunctionCallExprSyntax.resolveAttributeReference(parameterReference)
119119
// a resolvable value should call `resolve(...)` again
120-
if attributeReferenceType.genericArgumentClause!.arguments.first!.argument.as(IdentifierTypeSyntax.self)?.name.text.starts(with: "StylesheetResolvable") ?? false {
120+
if attributeReferenceType.genericArgumentClause!.arguments.first!.argument.as(IdentifierTypeSyntax.self)?.name.text.starts(with: "StylesheetResolvable")
121+
?? attributeReferenceType.genericArgumentClause!.arguments.first!.argument.as(OptionalTypeSyntax.self)?.wrappedType.as(IdentifierTypeSyntax.self)?.name.text.starts(with: "StylesheetResolvable")
122+
?? false
123+
{
121124
resolvedAttribute = FunctionCallExprSyntax.resolveAttributeReference(resolvedAttribute)
122125
}
123126
// InlineViewReference should call `resolve(...)` again

0 commit comments

Comments
 (0)