Added styles overhaul task docs

This commit is contained in:
Richard Osborne
2026-01-06 00:27:56 +01:00
parent d144166f79
commit 3bf411d081
10 changed files with 5209 additions and 0 deletions

View File

@@ -63,6 +63,25 @@ export function SidePanel() {
group
);
// ---
// Listen for node selection changes to force PropertyEditor recreation
// This ensures the panel updates when switching between different nodes
SidebarModel.instance.on(
SidebarModelEvent.nodeSelected,
() => {
const panelId = 'PropertyEditor';
setPanels((prev) => {
const component = SidebarModel.instance.getPanelComponent(panelId);
if (component) {
// Force recreation with new node props
prev[panelId] = React.createElement(component);
}
return prev;
});
},
group
);
// ---
// Support Hot reload on all panels
SidebarModel.instance.on(SidebarModelEvent.HotReload, () => {