Loading pageContext when using Vue Router #587
Unanswered
michaelhthomas
asked this question in
Help & Questions
Replies: 4 comments 5 replies
-
I'm not sure what you mean but I'll think you'll need deep integration for
that, aka onBeforeRoute()
…On Wed, Jan 4, 2023 at 4:16 PM Michael Thomas ***@***.***> wrote:
It does, the code sample above is Vue Router code. The only part I need
that isn't covered by VPS afaik is the getPageContext function in that
example, which would take the given route and fetch the updated pageContext
for the new page.
—
Reply to this email directly, view it on GitHub
<#587 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHVQRR2FFNVQ4T3N7DSWXDWQWH6XANCNFSM6AAAAAATQI2LUI>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
FYI #568. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Curious: why do you want to use Vue Router in the first place? Why not only VPS's built-in router instead? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using Vue Router for client side routing, like in the example in this repo, it is currently not possible to fetch the page context for each page (assuming there is one
onBeforeRoute
function which generates different a differentpageContext
for each page). Would it be possible to export thegetPageContext
helper from thevite-plugin-ssr
router and use that to update the page context on route change, or is there a better approach?Beta Was this translation helpful? Give feedback.
All reactions