We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d56a07 commit 86a9cc0Copy full SHA for 86a9cc0
1 file changed
packages/main-layout/src/browser/tabbar/bar.view.tsx
@@ -214,11 +214,9 @@ export const IconTabView: React.FC<{ component: ComponentRegistryProvider }> = (
214
}, [component]);
215
216
useEffect(() => {
217
- // Immediately update with current component to handle initial badge value
218
- setComponent({ ...component });
219
-
220
const dispose = component.onChange((newComponent) => {
221
- setComponent(newComponent);
+ // Immediately update with current component to handle initial badge value
+ setComponent({ ...newComponent });
222
});
223
return () => {
224
dispose.dispose();
0 commit comments