-
Notifications
You must be signed in to change notification settings - Fork 11
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
Preserve clojurescript objects in props #11
Comments
I've managed to invent a solution, the trick is in converting the attrs to a list, because I have a copied version of
This I then combine with a simple macro to get that key automatically out and present it as a binding. This isn't perfect, because you lose some important things like |
I solved the
So I wrote this js* based version as well:
While it is a little bit funky, it is also pretty robust. I don't know if calling functions on props is officially supported in hicada, but this allows it to become possible in the future at least. |
On Penpot we have a If there are interest, I can port it here ;) |
I've tried a few things:
attrs
into{:attrs attrs}
- but it was recursively changedBut haven't found a way to bypass the to-js part of hicada, this would be really useful in order to have pure clojurescript components which define an interface of some kind (in this case, taking a js object with
attrs
set to a clojurescript map).I'm not sure how I would make this change to hicada exactly. It could look for metadata perhaps? But that might be a little hacky.
The text was updated successfully, but these errors were encountered: