I have some questions around handling field value change logic.
- Is Option 1 or 2 better? Or does it not really matter?
- For Option 2, will the logic run in the order I have on the app?
Option 1: Wrapper LB for FVC
In this scenario, you have one LB on the FVC event and it calls all relevant LBs that need to happen on FVC.
Option 2: Individual LBs for FVC
In this scenario, I add multiple FVC events for every logic block that needs to happen on FVC.
So it’s probably dependent on you philosophy on encapsulation, code organization and so on for which one is better. But I don’t think technically one is much better or worse than the other. In option 2, that is correct, the order they are in the subtabe is the order they will be run.
@joeyates23 thank you! And I want to confirm there are no performance differences between using one versus the other? I am pretty sure, I heard there isn’t, but want to confirm.
Joe makes good points, but there is a little more. If you want control you choose option 1. With option 1 you can decide if you want to continue running the others when the first one has problems - do you want all the problems in one go or do you want to abort as soon as something goes sideways? With option 1 you can do either. With option 2 they will all run.
There is no measurable performance delta between the choices other than the ability to abort sooner. It’s one trip from the browser regardless.
Yeah definitely fair points for different levels of control between the two and probably also depends on some use cases where one can make sense over the other.