You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I love the static type checking feature! Unfortunately, I have been unable to use it in CLJS, no matter what I try. It errors out when using run time symbols in the fn schema. Judging by the doc page, the CLJS implementation is not yet mature enough. But seeing the code in src/malli/dev/cljs.clj gives me hope.
Looking through the PR that introduces CLJS support: #604, I see that it ultimately had the same problem. But then #611 promises to fix it. The question now becomes: am I using it wrong or is there a bug somewhere? I don't understand the code it's using, which is why I am writing this now.
I am using shadow-cljs to manage frontend. The following code is what I tried (and failed) to make this work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I love the static type checking feature! Unfortunately, I have been unable to use it in CLJS, no matter what I try. It errors out when using run time symbols in the fn schema. Judging by the doc page, the CLJS implementation is not yet mature enough. But seeing the code in
src/malli/dev/cljs.clj
gives me hope.Looking through the PR that introduces CLJS support: #604, I see that it ultimately had the same problem. But then #611 promises to fix it. The question now becomes: am I using it wrong or is there a bug somewhere? I don't understand the code it's using, which is why I am writing this now.
I am using
shadow-cljs
to manage frontend. The following code is what I tried (and failed) to make this work.I have tried the
^:dev/before-load
meta as well.What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions