Skip to content

Allow Next.js layouts to observe query changes - #77

Merged
mapringg merged 1 commit into
developfrom
next-route-observer
Nov 19, 2026
Merged

mapringg merged 1 commit into
developfrom
next-route-observer

Conversation

@mapringg

Copy link
Copy Markdown
Owner

Summary

Next.js page → parse searchParams on the server → client props
Next.js persistent layout → src/lib/next-route-params.ts → current client query

Next.js layouts keep their state during client navigation. The query hook lets a persistent layout observe a query change without passing stale values from the server.

Evidence

  • Before: The owner rule rejected the Next.js query hook in every web module.
  • After: The owners test accepts it in the shared route module and still flags direct named imports in components and other params modules. All 84 tests pass.

Merge Danger

Door: Two-way
Blast Radius: Lint

@mapringg
mapringg merged commit 5dab151 into develop Nov 19, 2026
1 check passed
@mapringg
mapringg deleted the next-route-observer branch November 19, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant