Skip to content
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

feat: rebind masked variables #4849

Merged
merged 2 commits into from
Feb 10, 2025
Merged

feat: rebind masked variables #4849

merged 2 commits into from
Feb 10, 2025

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented Feb 9, 2025

Here improved creating variables to override deeper bindings when new variable overrides ancestor variable similar to css variables behavior.

Here's a video with example

Screen.Recording.2025-02-09.at.16.10.16.mov

Here improved creating variables to override deeper bindings when new
variable overrides ancestor variable.

Here's a video with example
@TrySound TrySound requested review from kof and johnsicili February 9, 2025 09:13
@johnsicili
Copy link
Contributor

Hey I'm seeing variable IDs output. Am I doing something wrong? Thought we got rid of those.

Seems like something is wrong... I think I would expect only one "hello" to show up as the second overrides the first but in my video I see both and can select them independently.

nested.mp4

@TrySound
Copy link
Member Author

TrySound commented Feb 9, 2025

Good catch!

Copy link
Contributor

@johnsicili johnsicili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice that works now.

This might cause confusion having both vars there, selecting the "first", but the second valuing showing.

Screenshot 2025-02-09 at 11 22 09 AM

Though if people are defining the same variable twice then they should understand.

@TrySound
Copy link
Member Author

TrySound commented Feb 9, 2025

Will fix it in another PR

@TrySound TrySound merged commit 93334da into main Feb 10, 2025
17 checks passed
@TrySound TrySound deleted the rebind-vars branch February 10, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants