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
We don't always want our prop-values to be rendered as plaintext:
urls should be clickable
images should be displayed
etc.
Currently, the view calls (str prop-value).
This could be replaced with something like (render-prop prop-value), where render-prop is a fn/protocol/multimethod that returns hiccup.
This fn could either be passed as part of the :view map passed to re-crud.components/show, where the default could be str, or we could define a multimethod to automatically dispatch based on the type of the prop.
The text was updated successfully, but these errors were encountered:
We don't always want our prop-values to be rendered as plaintext:
Currently, the view calls
(str prop-value)
.This could be replaced with something like
(render-prop prop-value)
, whererender-prop
is a fn/protocol/multimethod that returns hiccup.This fn could either be passed as part of the
:view
map passed tore-crud.components/show
, where the default could bestr
, or we could define a multimethod to automatically dispatch based on the type of the prop.The text was updated successfully, but these errors were encountered: