Skip to content

Nested optional shared state #3126

Answered by mbrandonw
jiledaa asked this question in Q&A
May 30, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @jiledaa, I'm sorry there was a typo in those snippets. I meant Shared:

-Binding($user.service)?.array
+Shared($user.service)?.array

-Binding(Binding($user.service)?.array[id: elementID])
+Shared(Shared($user.service)?.array[id: elementID])

The Binding type has similar initializers, and Shared is kind of like that TCA version of Binding, and so that's why I mixed them up.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jiledaa
Comment options

@mbrandonw
Comment options

Answer selected by jiledaa
@jiledaa
Comment options

@mbrandonw
Comment options

@jiledaa
Comment options

@morstin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants