Skip to content

Commit

Permalink
fix: imporve error message (fix #1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 27, 2024
1 parent 027858d commit 36d13be
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type PageContextSerialized = {
}
function getPageContextFromHooks_serialized(): PageContextSerialized & { routeParams: Record<string, string> } {
const pageContextSerialized = getPageContextSerializedInHtml()
assertUsage(!('urlOriginal' in pageContextSerialized), "Adding 'urlOriginal' to passToClient is forbidden")
processPageContextFromServer(pageContextSerialized)
objectAssign(pageContextSerialized, {
_hasPageContextFromServer: true as const
Expand Down

0 comments on commit 36d13be

Please sign in to comment.