Fork me on GitHub
#fulcro
<
2021-08-14
>
wei16:08:27

would appreciate any pointers to debugging this error I'm getting with my session state machine.

{::uism/handler
 (fn [env]
   (let [nonce (get-in env [::uism/event-data
                            ::uism/mutation-result
                            :body 'app.model.session/make-session-nonce])]
     (-> env
         (uism/apply-action update-in (uism/actor->ident env :actor/session) merge nonce)
         (uism/trigger-remote-mutation :actor/session 'app.application/sign-message
                                       {::uism/mutation-remote :metamask 
                                        ::uism/ok-event :event/finished-login
                                        ::uism/error-event :event/failed}))))}
this is the error I'm getting after adding the trigger-remote-mutation line and hitting this handler:

3
wei18:08:34

nvmd figured it out! it was just an error thrown inside the mutation.

🎉 3
Jakub Holý (HolyJak)18:08:25

FYI I have open-sourced a somewhat simplified and anonymized version of the Fulcro/RAD production app I have created in 2020 - 2021, see https://github.com/holyjak/fulcro-billing-app if you want to see what a "real" app looks like. Also linked to it from https://fulcro-community.github.io/main/awesome-fulcro/README.html#_real_apps

🚀 29
wei18:08:09

@U0522TWDA thanks for all the resources you've created for the fulcro community! invaluable for a journeyman like me

🙏 7
Jakub Holý (HolyJak)18:08:09

I know. That is why I make them so that there can be more of us and so that Tony can focus on making Fulcro even more awesome :-)

🙏 10