pullis more efficient than
q, so you might be able to get away with a large ui if you use mostly pulls.
hey @mpdairy first of all thanks for the great work that you have done with posh !! that is definitely the missing piece in reactive programming that I was looking for.
I just started working with it and got some errors using
pull. I checked the source code and
Cursive showed me that there are three functions used with less than their declared arguments; namely
posh.plugin-base/missing-pull-resultline 20 and 22
object[TypeError TypeError: null is not an object (evaluating 'new cljs.core.Keyword(null,"conn?","conn?",167224275).cljs$core$IFn$_invoke$arity$1(dcfg).call')] posh$plugin_base$get_db cljs$core$IFn$_invoke$arity$5 posh$plugin_base$pull cljs$core$IFn$_invoke$arity$4 G__10589__3 G__10589 eval code eval@[native code] figwheel$client$utils$eval_helper
Since I just started working with posh, I am not sure if this is a problem with my configuration or an actual bug in the implementation, so I wanted to ask you first. I am happy to submit a PR to fix that if you want.
travis cifor one of my projects. I didnt setup the auto deploy myself but I think that the file is pretty self-explanatory. The only things that you would need to change are the your encripted env vars and your release config in
project.clj. Links below
(reg-query-sub :cur-form-def '[:find (pull ?e [*]) :in $ :where [_ :designer/cur-form-id ?id] [?e :form/id ?id] ])
[:code (pr-str @conn)]inside my root component re-render on every db change?
debug-connhere will work. Haven’t really stress tested it though might just be getting lucky. If you want to be more efficient you could rig up a
listen!on the conn.
build-defcfrom rum, but couldn't get that to work either.
pull-allin posh? I'm trying to write a pull-all version of this: https://github.com/denistakeda/re-posh/blob/master/src/re_posh/subs.cljc#L16
p/pullgives errors. I suspect because it returns a
reaction(which I don't really understand yet).
derefafter each individual pull (add it to your mapping function). This will give the value for the reaction. You may need to wrap the whole thing in a
reagent.core/make-reactionfunction if re-posh isn't doing that automatically where you are calling the derefs.