fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Jakub Holý 2021-04-28T07:26:16.271600Z

@tony.kay How to troubleshoot when Fulcro Inspect DB is empty even though there is data in the client DB? When you look into the current app -> ::app/state-atom , I see the data I expect. But Fulcro Inspect DB and DB Explorer show no data. Otherwise F.I. is working, i.e. Pick Element works just fine. This is how I set up and render the app, which I do at the end of my namespace, not inside shadow's init fn:

(app/mount! (app/fulcro-app {:initial-db
                               {:page/heading "<3> Fulcro is:"
                                :page/value-proposition-points [{:proposition/label "Malleable"}]}})
            Root "app" {:initialize-state? false})
The full code is here: https://github.com/fulcro-community/fulcro-exercises/blob/tmp/inspect-db-broken/src/holyjak/fulcro_exercises.cljs#L89. PS: I have the <script ...> that loads the .cljs code just before </body> but that should not matter? Any ideas where the problem could be or how to troubleshoot it? Thank you!

tony.kay 2021-04-28T20:18:54.272600Z

synchronization of the db to inspect is a rather cmplicated affair, and it is not without bugs at the moment. Fulcro has the client side of inspect in its source code, and mount calls a method to tell inspect that the app is there. Sounds like that part is working if you can pick elements. The client-side keeps track of db versions during dev as a numbered history. All it sends to inspect on each transaction is what db version has just been made. Then, once those updates settle down Inspect itself sends a message back to the app and asks for the content. If you right-click on Inspect itself and “Inspect Element” you’ll get a Chrome console that is Inspect’s (hows that for circular). Look for console errors. Could be you have something in state that cannot be serialized over the comm channel, and you might see errors in that console.

Jakub Holý 2021-04-28T20:24:28.272800Z

Thank you! I have indeed errors there, 2 of > persistence.js:1 File system error: A requested file or directory could not be found at the time an operation was processed. when requesting entry '' and 8 of > main.js:4157 ERROR [fulcro.inspect.chrome.devtool.main:176] - Something was nil So I guess I would need to run Inspect in debug mode to find out more, right?

Jakub Holý 2021-04-28T22:15:43.274200Z

Announcement: https://github.com/fulcro-community/fulcro-exercises is ready for beta testers! fulcro-exercises is a follow-up to the Minimalist Fulcro Tutorial to get hands dirty with Fulcro and learn and experience the theory in practice, through a series of gradually more challenging exercises. Please give it a try and let me know about your thoughts and suggestions! 🙏

👏 11
tony.kay 2021-04-28T22:54:09.274400Z

There are developer instructions in the inspect repo. feel free. You might also just try reinstaling the plugin. I’ve not had it act up in a way that is consistently non-functional

👍 1
🙏 1