mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 21:36:39 +00:00
Disable naming of render functions in defc and defcs macros.
This has caused some unexpected behavior with recursive components.
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
4 (let [sym (:name r)
|
||||
args (:args r)
|
||||
func (if (map? v)
|
||||
`(fn ~sym ~args ~v ~(s/compile-html `(do ~@n)))
|
||||
`(fn ~sym ~args ~(s/compile-html `(do ~@(cons v n)))))]
|
||||
`(fn ~args ~v ~(s/compile-html `(do ~@n)))
|
||||
`(fn ~args ~(s/compile-html `(do ~@(cons v n)))))]
|
||||
[func (:doc r) (:mixins r) sym]))))
|
||||
|
||||
(defmacro defc
|
||||
|
||||
Reference in New Issue
Block a user