discourse/app/assets/javascripts
Jarek Radosz 4af7b4d543
FIX: Cache breadcrumb-item template (#27585)
…to avoid re-evaulation right before destroying.

With `DeferredTrackedSet` we delay both adding and removing elements from the set. That means when you're transitioning between routes, and breadcrumbs change, both old and new breadcrumbs are rendered (briefly, in a first render pass)

And since the arguments for the old breadcrumbs can be (and often are) destroyed - it would blow up the renderer. By caching the template it will reuse it in that first pass.

---

No test because I couldn't figure out a synthetic test setup where you have breadcrumbs in a deeply nested route and where you navigate from that route to one of the parent routes.
2024-06-24 11:00:05 +10:00
..
admin
custom-proxy
deprecation-silencer
dialog-holder
discourse FIX: Cache breadcrumb-item template (#27585) 2024-06-24 11:00:05 +10:00
discourse-common
discourse-hbr
discourse-i18n
discourse-markdown-it
discourse-plugins
discourse-widget-hbs
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations
float-kit
locales
pretty-text
select-kit
theme-transpiler
truth-helpers
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb