Skip to content

Commit 715223a

Browse files
committed
Reformat.
1 parent 9ec4c4a commit 715223a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/wouter/src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ export const Router = ({ children, ...props }) => {
150150
// also, ensure ssrSearch is always defined when ssrPath is provided, so that
151151
// useSearch behavior matches usePathname (proper SSR hydration when client
152152
// renders <Router> without props after server rendered with ssrPath/ssrSearch)
153-
const [path, search = props.ssrSearch ?? ""] = props.ssrPath?.split("?") ?? [];
154-
if (path) props.ssrSearch = search, props.ssrPath = path;
153+
const [path, search = props.ssrSearch ?? ""] =
154+
props.ssrPath?.split("?") ?? [];
155+
if (path) (props.ssrSearch = search), (props.ssrPath = path);
155156

156157
// hooks can define their own `href` formatter (e.g. for hash location)
157158
props.hrefs = props.hrefs ?? props.hook?.hrefs;

0 commit comments

Comments
 (0)