Handling Conditional Rendering with Multiple Dependencies

I’m trying to display a specific element based on multiple conditions. I’ve listed three dependencies, but only the last condition seems to be applied. Any idea how I can fix this so that all conditions are evaluated correctly?

2 Likes

@vaibhav @Irfan_Ali can you please help

1 Like

Hi @Edward,

You can use onChanges.
Example:
onChanges: if(alpha.co.get().matterType == ‘Administrative’ && alpha.co.get().role == ‘admin’) {
alpha.co.update(‘isShow’, true)
}

Then use the ‘isShow’ as your only comparison or dependency.

Hope this helps, if you need any clarity, please let me know.

2 Likes