Skip to content

Commit d16a9c0

Browse files
authored
Merge pull request #10582 from growilabs/fix/175487-getserversidepropsfor-initial-is-not-executed-when-transitioning-from-outside-route
fix: getServerSidePropsForInitial is not executed when transitioning from outside route
2 parents 61da306 + 4c89e96 commit d16a9c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/app/src/pages/[[...path]]/index.page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
277277
// Merge all results in a type-safe manner (using sequential merging)
278278
return mergeGetServerSidePropsResults(
279279
commonEachPropsResult,
280-
nextjsRoutingType === NextjsRoutingType.INITIAL
281-
? await getServerSidePropsForInitial(context)
282-
: await getServerSidePropsForSameRoute(context),
280+
nextjsRoutingType === NextjsRoutingType.SAME_ROUTE
281+
? await getServerSidePropsForSameRoute(context)
282+
: await getServerSidePropsForInitial(context),
283283
);
284284
};
285285

0 commit comments

Comments
 (0)