Closed bharrisau closed 6 years ago
Yeah this deserves a better look.
I haven't invested the needed time into OmNext to make informed decisions here. AFAIK the goto implementation for om-next devcards is the project linked below and I'm just waiting for things to settle down before integrating it. Maybe this should happen soon.
My suggestion is to try this project and make commits and improvements to it and then we will integrate it straight into devcards.
I'm a little confused with the
defcard-om-next
macro. When used with a reconciler, theinitial-data
parameter is never used. (https://github.com/bhauman/devcards/blob/master/src/devcards/core.clj#L189) When the reconciler variable is data, the data is used for the reconciler initial state but isn't actually used by the card becauseinitial-data
is always returned from the parser.It also looks like
parse-card-args
only returns 5 args, not 6.I'd suggest updating the macro to combine the
om-next-reconciler
andinitial-data
and switch on them usingreconciler?
Something like this (excuse my poor macro knowledge)