Skip to content

Commit 03243ff

Browse files
author
YeongseoYoon
committed
feat: SSR 렌더링 시 쿼리 파라미터 설정 기능 추가
1 parent 5622019 commit 03243ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/main-server.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type SSRComponent = {
2222
export const render = async (pathname: string, query: Record<string, string>) => {
2323
const router = new Router(routes, BASE_URL);
2424
router.start(pathname);
25+
router.query = query;
2526
const params = { pathname, query, params: router.params };
2627

2728
const target = router.target as unknown as SSRComponent;

0 commit comments

Comments
 (0)