mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:53:39 +08:00
70f7d369fb
Why this change?
Prior to this change, the `SchemaThemeSetting::Editor#tree` was creating a
new `Tree` instance which holds instances of `Node`. Both classes
consisted of tracked properties. The problem with this approach is that
when any tracked properties is updated, Ember will revaluate
`SchemaThemeSetting::Editor#tree` and because that method always return
a new instance of `Tree`, it causes the whole navigation tree to
rerender just because on tracked property changed.
This rerendering of the whole navigation tree every time made it hard to
implement simple features like hiding a section in
|
||
---|---|---|
.. | ||
addon | ||
app | ||
.npmrc | ||
ember-cli-build.js | ||
index.js | ||
package.json |