question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ready now, #4603 almost done] Allow to get multiple cms components data in one request

See original GitHub issue

Feature request (discussed with @WeizhengSap on Slack):

For now in CmsService.getComponentData we can get one component’s data via its uid. This method prepares request to OCC and saves response as component data in the store and returns an observable with such chain.

However, for navigation there is a custom method to fetch multiple navigation node components in one request (see NavigationEntryItemEffects and CmsComponentConnector.getList).

What we miss here is to have a method like CmsService.getComponentsData which will get a list of uids of component and prepare one request to OCC for multiple components data.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Xymmercommented, Aug 16, 2019

@artem-zur it’s doable so we’ll try

0reactions
znikolacommented, Apr 28, 2020

getComponentData method can be safely and optimally used to load multiple components data at the same time. Calling getComponentData multiple times for different components will always result in optimized back-end request: all components requested at the same time (in one event loop) will be loaded in one network call.

Therefore, closing this issue for now, as there’s no need to add a new method.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ready now, #4603 almost done] Allow to get multiple cms ...
This method prepares request to OCC and saves response as component data in the store and returns an observable with such chain. However,...
Read more >
Customizing CMS Components - Spartacus Documentation
This allows you to configure a custom component to render a specific CMS component. In addition, component-specific business logic can be customized.
Read more >
department of health and human services - CMS
Requests for review of applications for a new class of new technology intraocular ... RHQDAPU Reporting hospital quality data for annual payment update....
Read more >
Federal Register/Vol. 86, No. 127/Wednesday, July 7, 2021 ...
484.55(a)(2) and 484.55(b)(3) to allow ... utilization of home health over time. ... did not yet have the data to determine.
Read more >
The CMS experiment at the CERN LHC
The Compact Muon Solenoid (CMS) detector is a multi-purpose apparatus due to ... Photo of a rod frame equipped with electronics components, ready...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found