This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-26
Channels
- # announcements (1)
- # babashka (106)
- # beginners (11)
- # biff (7)
- # calva (16)
- # clj-kondo (40)
- # clj-on-windows (5)
- # clj-yaml (10)
- # clojars (4)
- # clojure (37)
- # clojure-austin (22)
- # clojure-australia (1)
- # clojure-europe (40)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-spec (6)
- # clojure-uk (6)
- # clojurescript (13)
- # conjure (11)
- # cursive (14)
- # datalevin (8)
- # datascript (5)
- # emacs (39)
- # events (1)
- # fulcro (55)
- # gratitude (4)
- # holy-lambda (2)
- # humbleui (9)
- # instaparse (1)
- # lsp (3)
- # malli (12)
- # meander (2)
- # membrane (7)
- # nbb (1)
- # off-topic (16)
- # pathom (9)
- # releases (3)
- # sci (14)
- # shadow-cljs (25)
This Thursday at 9:30 AM Pacific I'm gonna take a crack at using Fly Machines as a sandbox for untrusted Babashka scripts. I've never touched Fly before so hopefully we don't run into any pitfalls/timesinks 🙂 . Zoom link: https://us06web.zoom.us/j/82039492586?pwd=ZU9TejI4c1E2N0xiWmh6UllNbmFJUT09 RSVP on Meetup to get a calendar invite: https://www.meetup.com/biff-coding/events/288235328/
I think one of the Biff livestreams adds a web form in… can anyone remember which one it was (if I’m right)?
This one I'm guessing: https://biffweb.com/p/bpp-3/ But maybe this one: https://biffweb.com/p/biff-coding-password-auth/
that’s the one! thx!
Is there a way to see what the`params` are within this function when a form is submitted from the frontend?
(defn set-bar [{:keys [session params] :as req}]
(biff/submit-tx req
[{:db/op :update
:db/doc-type :user
:xt/id (:uid session)
:user/bar (:bar params)}])
(biff/render (bar-form {:value (:bar params)})))
Yep, two ways I commonly do it:
• add a (prn params)
(or (biff/pprint params)
) right before the submit-tx
• add a (def params* params)
right before the submit-tx
, then inspect params*
from the repl
<sound of steel through air> 🥷