mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 20:18: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:
parent
f82c534df4
commit
447d484f7b
@ -36,8 +36,8 @@
|
|||||||
4 (let [sym (:name r)
|
4 (let [sym (:name r)
|
||||||
args (:args r)
|
args (:args r)
|
||||||
func (if (map? v)
|
func (if (map? v)
|
||||||
`(fn ~sym ~args ~v ~(s/compile-html `(do ~@n)))
|
`(fn ~args ~v ~(s/compile-html `(do ~@n)))
|
||||||
`(fn ~sym ~args ~(s/compile-html `(do ~@(cons v n)))))]
|
`(fn ~args ~(s/compile-html `(do ~@(cons v n)))))]
|
||||||
[func (:doc r) (:mixins r) sym]))))
|
[func (:doc r) (:mixins r) sym]))))
|
||||||
|
|
||||||
(defmacro defc
|
(defmacro defc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user