Can I mange global state in cumulocity

we want to get inventory device list once and we can use every where from global state.
as of now we are hitting inventory API again and again.

As you did not really provide any further info, I’m now assuming that you are talking about an angular application where you would like to share this “global state” in?

Simple approaches on how to deal with this could be via a service that is shared between the different components, which caches certain list. This could also be extended with some options to clear/refresh it’s cache/state when ever you perform certain requests to the platform.

There are also libraries like ngrx that you could use for state management. But this is a general angular topic and not really related to Cumulocity.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.