Fork me on GitHub
#fulcro
<
2020-08-20
>
Adam Helins08:08:00

Say a prop on a component is a map with arbitrary keys pointing to idents that need to be denormalized as well. I understand there are no "wild card joints" at the moment. I would have to set a dynamic query every time I add or remove a key in that map and that query would return an updated vector of joints for each key. Is that correct?

tony.kay19:08:57

I got some direct funding to add some advanced details to the book. The new chapter covers a bit about advanced internals which is quite useful to understand, since it reveals in a concentrated location what kinds of things you’re free to mess around with. The new section also covers how you would go about auditing the application’s operation over time, and how you’d write a support viewer or other UI time travel feature. http://book.fulcrologic.com/#_advanced_fulcro_internals

❤️ 9
tony.kay22:08:30

Fulcro 3.2.14-SNAPSHOT now has some helpers that can be used to deal with limited types of offline situations: • Tenacious remote: A wrapper for remotes that can be configured to retry network requests. Useful for making flaky network comms (say on mobile) a bit more “stable looking” • Cached loads: A plugin that augments the load system with offline loading, where the result can be “the last known good load” of that data when the network is down. Has options for eager fetch and other bits. • Durable mutations: A plugin that augments the tx processing system to make it possible to submit a mutation that will be done “no matter what”. Such mutations are stored to a durable location (i.e. browser local storage, mobile secure store) and are retried until the server acks them. Your mutation is invoked on every retry on the client and can detect when the attempt is a retry, and how many times it has been retried (and can cancel it as well). These bits could be used as building blocks to add support for a full offline mode to your app, but of course your API has to be well-designed in order to make that fully possible. The docstrings in the namespaces are intended to be the documentation for now. No time to add to book. There is a YouTube video that walks through the basics. Video with source: https://youtu.be/nrF9S5rxVgc https://github.com/fulcrologic/fulcro/tree/offline-demo-todomvc/src/todomvc/fulcro_todomvc Namespaces of interest: https://github.com/fulcrologic/fulcro/tree/develop/src/main/com/fulcrologic/fulcro/offline

🎊 15
tony.kay15:08:38

I feel like tenacious remote needs a packet of destiny…

tony.kay22:08:07

What the heck…releasing 3.2.14. If we find issues we can fix them.

markaddleman00:08:29

:rolling_on_the_floor_laughing:

👆 3