Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Oct 13, 2024
1 parent b86acd1 commit 45b61ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node_package/src/serverRenderReactComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ function processServerRenderHash(result: ServerRenderResult, options: RenderOpti
const redirectPath = redirectLocation.pathname + redirectLocation.search;
console.log(`ROUTER REDIRECT: ${options.componentName} to dom node with id: ${options.domNodeId}, redirect to ${redirectPath}`);
}
// For redirects on server rendering, we can't stop Rails from returning the same result.
// Possibly, someday, we could have the rails server redirect.
htmlResult = '';
} else {
htmlResult = result.renderedHtml as string;
Expand Down

0 comments on commit 45b61ba

Please sign in to comment.