Skip to main content
Jul 13, 2021 12:42 PM UTC
Solved

Best practice for showing icon on service calls.

Hello,

Needed some opinion on loading the status icon based on the properties current state.

Is it performance efficient to load the status icon as part of the service output or create a state definition and only out put the value from the service and the icon is decided by the state definition.

My thinking is that the state definition is loaded once on launch and icon is rendered based on the value, instead of loading the icon as a service output on every call.

 

Thank you!

 

 

PaiChungAnswer
Jul 15, 2021 1:01 PM UTC

I believe what you mention is correct. I would use State Based Definitions so the icons would only be loaded once, vs every time you run the service.

2 replies

PaiChungAnswer
Jul 15, 2021 1:01 PM UTC

I believe what you mention is correct. I would use State Based Definitions so the icons would only be loaded once, vs every time you run the service.

sbtAuthor
Jul 15, 2021 1:47 PM UTC

Thanks you!!