Preventing pageContext
JSON fetch in V1?
#1095
-
I read through the code and some tickets, notably #95. I can set My goal is streaming SSR for the first page load, and then all subsequent nav would entirely render on the client. But I have been unable to achieve this. No matter what I do, In the code, there's a comment about a workaround "for the fact that the client-side cannot known whether a pageContext JSON request is needed", and suggests defining all necessary pageContextInit keys -- but the code in Is this a regression in V1 or is it intended to work this way? Is there any way around this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
It only makes a
Double check whether that's the case and if both are false and it still makes a JSON request, then report back as it would be a bug. Note that this is behavior is part of the CI, so chances are that it does work as intended. |
Beta Was this translation helpful? Give feedback.
In general, I'd reduce pageContextInit to a strict minimum. Usually
pageContextInit
is only used for authentication, e.g. for providingpageContext.user
.Let me know if that answers your question.