-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document dynamic bind:this #2422
Comments
By dynamic you mean something like
or like
like mentioned in #2333 ? I'd love to get the first one running 😍 Any possibility? Update: Sadly the following doesn't work either even though it's at least compiling
|
I mean the second one - I don't know what you'd want the first one would do. If you bound to The third other syntax in your update compiles because Svelte doesn't see that as a conditional |
Yea just that the condition has to happen in the
That's what I thought might be the case, thanks for clarifying 🙏 So sticking to |
Closing due to no activity and no plans to do so, as I think the behavior is intuitive. This was mostly a "oh I can do this now?" for Svelte 2 users I guess. |
As far as I can tell, there are no docs or examples yet where
bind:this
is given a dynamic expression depending on e.g. each block iteration. This should be mentioned somewhere, as pre-v3 this was one of the things that kept coming up that people wanted with refs.The text was updated successfully, but these errors were encountered: