Skip to content

Commit 9d469fb

Browse files
committed
perf: layout
1 parent 8eb43a4 commit 9d469fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/layout/Sider.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export default defineComponent({
111111
return responsiveHandlerRef.value!(mql);
112112
}
113113
const uniqueId = generateId('ant-sider-');
114+
siderHook && siderHook.addSider(uniqueId);
115+
114116
onMounted(() => {
115117
if (typeof window !== 'undefined') {
116118
const { matchMedia } = window;
@@ -124,7 +126,6 @@ export default defineComponent({
124126
responsiveHandler(mql);
125127
}
126128
}
127-
siderHook && siderHook.addSider(uniqueId);
128129
});
129130
onBeforeUnmount(() => {
130131
try {

0 commit comments

Comments
 (0)