Should stylex.create() and stylex.createTheme() always be called at module scope? #1679
Unanswered
drwpow-figma
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question on how rules should be enforced. Like, this is not a pattern found in the docs, but should it be expressly forbidden by the ESLint rule or be a compile error?
Which then begs the question, when is too much?
Should either or both of these throw an error, rather than compiling? Or is this something that is the consumer’s responsibility to enforce in their own codebase?
Beta Was this translation helpful? Give feedback.
All reactions