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

[v3] nested block statements in dynamic functions #454

Open
jordmccord opened this issue Dec 18, 2024 · 0 comments
Open

[v3] nested block statements in dynamic functions #454

jordmccord opened this issue Dec 18, 2024 · 0 comments

Comments

@jordmccord
Copy link

Description

I'd noticed that you updated the babel plugin to allow block statements in dynamic functions but anything deeper than one level errors while using the plugin. See here for an example of a v2 function that breaks in v3. I've managed to get around the issue by using compound variables (love the new features) but I thought I'd make you aware no doubt someone with a similar use case will encounter this too.

Steps to Reproduce

  1. Create a stylesheet with a dynamic function
  2. Add a few nested if statements

Snack or Repository Link (Optional)

No response

Unistyles Version

3.0.0

React Native Version

0.76.3

Platforms

Android, iOS

Expo

Yes

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

No branches or pull requests

1 participant