fulcrologic / fulcro-inspect

A tool for inspecting and debugging Fulcro applications during development.
https://chrome.google.com/webstore/detail/fulcro-inspect/meeijplnfjcihnhkpanepcaffklobaal
MIT License
66 stars 10 forks source link

Transaction doesn't register in transaction tab #27

Closed RokLenarcic closed 6 years ago

RokLenarcic commented 6 years ago

See https://github.com/fulcrologic/fulcro/issues/118 for code.

If you follow the instructions you should get a working app.

Run the client and server and open fulcro inspect.

Click the button. You'll notice that UI changes, but no transaction shows up in transactions tab of fulcro inspect.

wilkerlucio commented 6 years ago

@RokLenarcic I found an issue on the transaction code:

(prim/transact! this `[(simple-edit {:path [:person/by-id ~id :person/active] :fn ~not}) f/form-root-key])

That line is wrong, you are sending a symbol to transaction, which is invalid there, it's missing the unquote on the f/form-root-key, changing to this makes it work:

(prim/transact! this `[(simple-edit {:path [:person/by-id ~id :person/active] :fn ~not}) ~f/form-root-key])