Skip to content

Commit

Permalink
delete unused query
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 23, 2022
1 parent 648bc7f commit b908256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ export function getRender({
const requestHandler = server.getRequestHandler()

return async function render(request: NextRequest) {
const { nextUrl: url } = request
const { searchParams } = url
const query = Object.fromEntries(searchParams)

// Preflight request
if (request.method === 'HEAD') {
// Hint the client that the matched route is a SSR page.
Expand Down
3 changes: 3 additions & 0 deletions packages/next/server/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ export async function renderToHTML(
? JSON.parse(query.__props__ as string)
: undefined

delete query.__flight__
delete query.__props__

const callMiddleware = async (method: string, args: any[], props = false) => {
let results: any = props ? {} : []

Expand Down

0 comments on commit b908256

Please sign in to comment.