We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Props that contain numbers that get passed to components defined with defnc end up going missing or having the numbers truncated.
defnc
For example - the test component below never receives a value for :x1, and receives a value for :test rather than :test2
:x1
:test
:test2
(defnc Test [opts] (println opts) [:div]) [Test {:x1 0 :test2 1}] => {: 0 :test 1 :class nil}
You can also see this if you call (hx.react/props->clj #js {"x0" 1}) directly.
(hx.react/props->clj #js {"x0" 1})
I think this is because of the implementation of camel->kebab.
camel->kebab
The text was updated successfully, but these errors were encountered:
Nice find! Fixed with 3afd7d4
Sorry, something went wrong.
No branches or pull requests
Props that contain numbers that get passed to components defined with
defnc
end up going missing or having the numbers truncated.For example - the test component below never receives a value for
:x1
, and receives a value for:test
rather than:test2
You can also see this if you call
(hx.react/props->clj #js {"x0" 1})
directly.I think this is because of the implementation of
camel->kebab
.The text was updated successfully, but these errors were encountered: