Skip to content

Commit

Permalink
fix: workaround dev tool issue (fix #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jan 21, 2024
1 parent 3be5491 commit bce4a81
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/vike-react/renderer/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export default {
// https://vike.dev/onRenderClient
onRenderClient: 'import:vike-react/renderer/onRenderClient:onRenderClient',

passToClient: [
// https://github.com/vikejs/vike-react/issues/25
process.env.NODE_ENV === 'production' && '$$typeof'
].filter(isNotFalse),

// https://vike.dev/clientRouting
clientRouting: true,
hydrationCanBeAborted: true,
Expand Down Expand Up @@ -112,3 +117,7 @@ declare global {
}
}
}

function isNotFalse<T>(val: T | false): val is T {
return val !== false
}

0 comments on commit bce4a81

Please sign in to comment.