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
Copy file name to clipboardExpand all lines: README.md
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ If you don't remember the props required by some cljfx type, or if you don't kno
68
68
69
69
### Improved error messages with spec
70
70
71
-
You can set custom type->lifecycle opt that will validate all cljfx component descriptions using spec and properly describe the error:
71
+
You can set validating type->lifecycle opt that will validate all cljfx component descriptions using spec and properly describe the errors:
72
72
73
73
```clojure
74
74
;; suppose you have a simple app:
@@ -124,4 +124,34 @@ You can set custom type->lifecycle opt that will validate all cljfx component de
124
124
;; at cljfx.dev$ensure_valid_desc.invoke(validation.clj:58)
125
125
;; at cljfx.dev$wrap_lifecycle$reify__22150.advance(validation.clj:80)
126
126
;; at ...
127
+
```
128
+
If you already use custom type->lifecycle opt, instead of using `cljfx.dev/type->lifecycle` you can use `cljfx.dev/wrap-type->lifecycle` to wrap your type->lifecycle with validations.
129
+
130
+
Additionally, you can validate individual descriptions while developing:
0 commit comments