Skip to content

Commit e1b8274

Browse files
bartlomiejuclaude
andcommitted
chore: format
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c1fc7dd commit e1b8274

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

packages/fresh/src/runtime/server/preact_hooks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ options[OptionsType.VNODE] = (vnode) => {
132132
if (RENDER_STATE !== null) {
133133
RENDER_STATE.owners.set(vnode, RENDER_STATE!.ownerStack.at(-1)!);
134134
if (vnode.type === "a") {
135-
setActiveUrl(vnode, RENDER_STATE.ctx.url.pathname, RENDER_STATE.ctx.url.search);
135+
setActiveUrl(
136+
vnode,
137+
RENDER_STATE.ctx.url.pathname,
138+
RENDER_STATE.ctx.url.search,
139+
);
136140
}
137141
}
138142
assetHashingHook(vnode, BUILD_ID);

packages/fresh/src/runtime/shared_internal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export function matchesUrl(
6161

6262
if (current === href) {
6363
// If the link has query params, only mark as current if they match
64-
if (needleSearch && currentSearch !== undefined && needleSearch !== currentSearch) {
64+
if (
65+
needleSearch && currentSearch !== undefined &&
66+
needleSearch !== currentSearch
67+
) {
6568
return UrlMatchKind.Ancestor;
6669
}
6770
return UrlMatchKind.Current;

0 commit comments

Comments
 (0)