Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed May 1, 2023
1 parent d5c001f commit 1ca5df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/solid-ssr/renderer/_default.page.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ async function render(pageContext: PageContextClient) {
}
}

// Avoid:
// Avoid reconcile() to throw:
// ```
// dev.js:135 Uncaught (in promise) TypeError: Cannot assign to read only property 'Page' of object '[object Module]'
// at setProperty (dev.js:135:70)
// at applyState (dev.js:320:5)
// ```
function removeUnmergableInternals<T>(pageContext: T): T {
// Remove pageContext properties that cannot be reassigned by reconcile()
const pageContextFixed = { ...pageContext }
// Following pageContext properties cannot be reassigned
// @ts-ignore
delete pageContextFixed._pageFilesAll
// @ts-ignore
Expand Down

0 comments on commit 1ca5df5

Please sign in to comment.