Fork me on GitHub
#fulcro
<
2023-02-09
>
Michael W23:02:31

I have created a copy of the fulcrologic/fulcro-rad-template from github. Running it fresh from the directions it loads up and everything works fine, except one minor detail. On the accounts display, there is a toggle for showing inactive accounts. The toggle does not affect the list. If I change an account to inactive, and toggle the option on in the UI, i don't see inactive accounts, only active ones. From line 100 of the template https://github.com/fulcrologic/fulcro-rad-template/blob/c09cfd8673df0e3bfd094fa8b08c331dae8b1de1/src/main/com/example/ui/account_forms.cljc#L100 it has a call that should update the value. But in the fulcro inspect I see nothing happening when I toggle the inactive option in the UI.

tony.kay14:02:12

That screen is designed to use the resolver on the back end for filtering inactive, so that the rows don’t change visibility until you reload. So toggling enabled->disabled still shows the row. Could be a recent update changed something by accident. Looking at the code I’m not sure why the row actions are commented out. OH, this is the template, not the demo. Look at the demo.

tony.kay14:02:17

The demo probably doesn’t have al of the logic for making that enable/disable stuff work.

tony.kay14:02:22

which is why it is commented out

Michael W16:02:51

Ok thanks, just using this as a way to learn how all the pieces fit from the simplest implementation.

tony.kay17:02:09

The demo is a better learning tool, IMO. The template is meant to be something you just delete the UI from an kind of start working on once you know what you’re doing 🙂