Checking out the code now.
What we usually do is have the fake switch out happen on the server side.
We use component to stitch together our applications, using code something like this:
(defn new-system
[config]
(let [{:keys [fake-mode]} config]
(component/system-map
:twitter (if fake-mode (fake-twitter/component config) (twitter/component config))
:poster (component/using (poster/component config) [:twitter])
:web (component/using (web/component config) [:poster]))))
Then the frontend always connects to the server
Switching things out for fake data on the frontend is a neat idea, though
It would let you rev on the frontend without having the backend present at all
Thanks for sharing the code, let me know if you have any other questions
And thank you for your kind words, I'm super happy to be part of something that's useful
🤯🤯 So awesome!!! Thank you!!! I'll study this later today and let you know how it works out! @nate