Is this the idiomatic Svelte 5 way of create a condition object for this list? #12107
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment 8 replies
-
The code adds items to |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In this reproduction I'm trying to understand if it's possible and if this is the idiomatic way to create a condition filter for a list merging variables from parents too...
But it doesn't work.
As you can see, when you open the project the condition is empty
{}
.Instead I need it to be:
Is there a way?
UPDATE:
I can add
facade.searchText = searchText;
to the end of the script, but in this example I only havesearchText
but in real code I have many of them and is not easy to remember to add all of them at the end of the script when I add or remove props.Any idea?
Beta Was this translation helpful? Give feedback.
All reactions