Skip to content

fix: correct parameter order in function call#227

Open
sascha-kaleidoscode wants to merge 1 commit intonativewind:mainfrom
sascha-kaleidoscode:main
Open

fix: correct parameter order in function call#227
sascha-kaleidoscode wants to merge 1 commit intonativewind:mainfrom
sascha-kaleidoscode:main

Conversation

@sascha-kaleidoscode
Copy link

Fix: Correct parameter order in useCssElement call (web)

This fixes a bug in the styled() helper where the arguments to useCssElement were passed in the wrong order. The function expects (component, props, mapping), but we were passing (component, mapping, props) by mistake.

This meant the style mapping was being treated as props, which caused styles to be applied incorrectly. The parameter order is now fixed so everything behaves as intended.

@leon-wbr
Copy link

It would be great if this got merged, I got stuck on it for an eternity.

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.

2 participants