- Issue created by @mglaman
\Drupal\experience_builder\Plugin\ExperienceBuilder\ComponentSource\JsComponent::renderComponent calls getComponentUrl to pass along in the build for the astro island. But the same URL is also created again in \Drupal\experience_builder\Plugin\ExperienceBuilder\ComponentSource\JsComponent::getScopedDependencies for the same component, even if it has no dependencies.
First
Then again
JsComponent::getScopedDependencies is meant to be recursive for imported components. If multiple components had the same dependency we could be recalculated the URL more times than needed.
Maybe \Drupal\experience_builder\Entity\JavaScriptComponent::getComponentUrl can statically cache the value once retrieved.
Active
1.0
β¦Β to be triaged