Skip to content

Commit

Permalink
update to-do
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Aug 17, 2024
1 parent 89ca09e commit a42bb7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vike-vue/src/renderer/createVueApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ async function createVueApp(

const data = pageContext.data ?? {}
assertDataIsObject(data)
// TODO/breaking-change: use shallowRef() instead of shallowReactive()
// - Remove workaround https://github.com/vikejs/vike-vue/blob/89ca09ed18ffa1c0401851a506f505813a7dece7/packages/vike-vue/src/renderer/onRenderClient.ts#L18-L21
const dataReactive = shallowReactive(data)
const pageContextReactive = shallowReactive(pageContext)
setPageContext(app, pageContextReactive)
Expand Down

0 comments on commit a42bb7d

Please sign in to comment.