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

Fix /*@once*/ only works with first child of object #258

Closed
wants to merge 1 commit into from

Conversation

titoBouzout
Copy link
Contributor

Related to #252

Somehow figured that the problem was that removing the comment makes the expression dynamic again for the next object evaluated. That's why it works once and then stops working.

Added a test expecting the effect to not be present.

The effect will be present even in the presence of @once if you use a spread, which I didn't figure how to handle nor what to expect to be honest. I didn't add a test for it because it will fail.

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.

1 participant