Fork me on GitHub
Jakub Holý (HolyJak)07:04:16

@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: 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!


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ý (HolyJak)20:04:28

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 [] - Something was nil So I guess I would need to run Inspect in debug mode to find out more, right?


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

👍 3
🙏 3
Jakub Holý (HolyJak)22:04:43

Announcement: 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! 🙏

👏 35