Block's input variable doesn't trigger OnParametersChanged event
139
Views
4
Comments
New
Frontend (App Interfaces)

The OnParametersChanged event is triggered wherever there is a change in the block's input parameters by its parent. 

It would be good if the block's input parameters had an option that, when set to true, wouldn't trigger the OnParametersChanged event.

Hi Diogo,

What is the usecase for this?

Regards,

Daniel

The use case is simple. 

It is usually to use the same block in multiple screens (to promote reusability). And the input parameters are used to decide if the block shows/hides some functionality. So, if I change one of them to only show something, I don't want to refresh the data in the OnParametersChanged.

Sounds like it could be useful to avoid more complex logic like requiring a 'IsChanged' input parameter to compare against.

I've had many use cases where this would've saved some implementation time.

Great idea, Diogo!