Skip to content

Conversation

@ahcarpenter
Copy link

This PR is to add the missing ending parenthesis to:

server.ext("onPreResponse", (request, reply) => {
  const query = qs.stringify(request.query);
  const currentLocation = request.path + (query.length ? "?" + query : "");
  const cookies = request.headers.cookies;

  renderApp({
    isServer: true,
    cookies,
    currentLocation
  }).then(appComponent => {
    reply(getMarkup(appComponent));
  });
});

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