Coby Sher commented on commit 0ce3d9cf at Issue forks / drupal_state-3254467

Coby Sher
2022-11-09T00:33:22Z

Given our TODO to refactor getApiIndex anyway, I am wondering if it would be a good idea to take in the locales up front when creating the store (in addition to per request), so that we could index the locales with their apiRoot, and in getObject could call a new helper like this.getLocaleIndex('es') for example?

That way we would only need to fetch the index once and we would have them available for all locales provided up front. Thoughts?