Skip to content

Commit ca08d5c

Browse files
committed
feat: [basic]main 실행 순서 변경
1 parent e246433 commit ca08d5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vanilla/src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const enableMocking = () =>
2121
function main() {
2222
registerAllEvents();
2323
registerGlobalEvents();
24-
loadCartFromStorage();
2524

2625
// Hydrate store with SSR data if present
2726
if (typeof window !== "undefined" && window.__INITIAL_DATA__) {
@@ -35,8 +34,12 @@ function main() {
3534
delete window.__INITIAL_DATA__;
3635
}
3736
}
37+
3838
initRender();
39+
3940
router.start();
41+
42+
loadCartFromStorage();
4043
}
4144

4245
if (import.meta.env.MODE !== "test") {

0 commit comments

Comments
 (0)