mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 17:16:30 +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
|
||
---|---|---|
.. | ||
editor | ||
types | ||
editor.gjs | ||
field-input-description.gjs | ||
field.gjs | ||
number-field.gjs |