Fork me on GitHub
#re-frame
<
2023-11-30
>
Kimo23:11:13

Just released https://clojars.org/day8.re-frame/re-frame-10x/versions/1.9.1. Highlights: ā€¢ App-db editor ā—¦ Want to test out a certain db value? Just click Edit on a path inspector and type it in. ā—¦ Want to reproduce your app-db? Save and restore it from an edn file. ā€¢ Project-level config ā—¦ Want to version-control your 10x settings? https://github.com/day8/re-frame-10x#project-configuration. ā€¢ New React-18 mode ā—¦ Tired of that warning message? https://github.com/day8/re-frame-10x#compatibility-matrix. ā€¢ Get subscriptions into your REPL ā—¦ Want to https://github.com/day8/re-frame-10x/issues/205 past subscription values? Try the new "Copy REPL command" button in the subs panel.

šŸ”„ 13
šŸŽ‰ 2
rolt10:12:18

thanks for the changes. I tried it and it works great. However I'm seeing some data printed to the console for every "event loop" iteration. I think it's due to the code here: https://github.com/day8/re-frame-10x/blob/97f4ea03dc269ba6c5ef9084ba5d317bf4d7e931/src/day8/re_frame_10x/panels/app_db/subs.cljs#L46-L48

rolt10:12:05

thanks !

andre10:12:18

Want to reproduce your app-db? Save and restore it from an edn file. i had this feature in first versions of re-frisk, but it doesn't work for real projects, for a few reasons

andre11:12:33

Want to test out a certain db value? Just click *Edit* on a path inspector and type it in. this one i also considered but decided not to implement it, because there is repl and hot reload, so it's not a feature for real projects

Kimo18:12:26

Hey, thanks for taking a look. Admittedly I haven't tried it on "real" projects yet, but it works on the todomvc. It registers and dispatches an event in the client re-frame to achieve the feature. Do you think that would mess up hot reloading somehow?