I would make one call to the server to get a list of items. How do I make sure that only one call is made and the collections is processed only once to create a key value ma
You could also solve this by using a decorators, For an instance by using the debounce decorator from utils-decorator lib (npm install utils-decorators):
import {memoizeAsync} from 'utils-decorators';
class MyAppComponent {
@memoizeAsync(30000)
getData(input) {
...
}
}