Fork me on GitHub
#fulcro
<
2023-02-08
>
nivekuil10:02:25

Is there a way to mutate the fulcro db continuously, like in a background loop, without making inspect turn blank? I think it does that if it's waiting on too many transactions

dvingo21:02:38

Looks like you should be able to remove-watch using the app uuid which is in your app state https://github.com/fulcrologic/fulcro/blob/71ed79c650222567ac4a566513365a95f12657e3/src/main/com/fulcrologic/fulcro/inspect/inspect_client.cljc#L346 and then put the watch back after

nivekuil16:02:14

hm, I wonder if I would break anything to have db-changed! ignore certain keys

zhuxun217:02:05

After upgrading to Fulcro 3.6.0, I'm still getting the "Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot".

zhuxun217:02:46

I see, I need to manually enable it. https://book.fulcrologic.com/#ReactCompatibility

2
👍 2
Tommy23:02:09

@holyjak here is something that confused me about your articlehttps://fulcro-community.github.io/guides/tutorial-minimalist-fulcro/index.html#_an_overview_of_fulcro. You go into detail about "establishing edges in the client DB graph using initial-state". This is a fairly complicated thing, especially for a newbie (not that its bad design, like tony says, we are solving hard problems). Your explainer bubble is great on this topic (screenshot 1). However in example 7, you don't include the initial state piece required to make this work :root/accounts is never connected to anything (screenshot 2). If you copied and used this example, it would not work because its lacking the piece of data you described in screenshot 1. You don't need to include every detail in this small example, but this crucial detail is also not in one of your ;;LEFT OUT comments. Let me know if i'm misunderstanding something...

2
Jakub Holý (HolyJak)13:02:34

Thanks a lot for pointing out the problems, Tommy! I have now fixed it - see the site or https://github.com/fulcro-community/guides/commit/9e3e9fe51e9b5ea4ddbf88d4ecc2cb0c5a6fdf70

🙂 2