Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nitedani committed Feb 16, 2024
1 parent 45408d5 commit 8eb9d8b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 38 deletions.
4 changes: 1 addition & 3 deletions examples/zustand/pages/+config.h.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Config } from 'vike/types'
import Layout from '../layouts/LayoutDefault'
import Head from '../layouts/HeadDefault'
import logoUrl from '../assets/logo.svg'
import vikeReact from 'vike-react'
import vikeReact from 'vike-react/config'
import vikeReactZustand from 'vike-react-zustand/config'

// Default configs (can be overridden by pages)
Expand All @@ -11,8 +11,6 @@ export default {
Head,
// <title>
title: 'My Vike + React App',
// <meta name="description">
description: 'Demo showcasing Vike + React',
// <link rel="icon" href="${favicon}" />
favicon: logoUrl,
extends: [vikeReact, vikeReactZustand],
Expand Down
3 changes: 3 additions & 0 deletions packages/vike-react/src/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export default {
VikeReactQueryWrapper: {
env: { client: true, server: true }
},
VikeReactZustandWrapper:{
env: { client: true, server: true }
},
Wrapper: {
env: { client: true, server: true }
},
Expand Down
3 changes: 0 additions & 3 deletions packages/vike-react/src/renderer/getPageElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ function getPageElement(pageContext: PageContext): JSX.Element {
<React.StrictMode>
<PageContextProvider pageContext={pageContext}>
<VikeReactQueryWrapper pageContext={pageContext}>
<Wrapper>
<Layout>{Page ? <Page /> : null}</Layout>
</Wrapper>
<VikeReactZustandWrapper pageContext={pageContext}>
<Wrapper>
<Layout>{Page ? <Page /> : null}</Layout>
Expand Down
1 change: 1 addition & 0 deletions packages/vike-react/src/types/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ declare global {
stream?: boolean

VikeReactQueryWrapper?: React.ReactNode
VikeReactZustandWrapper?: React.ReactNode

Wrapper?: () => React.ReactNode
}
Expand Down
50 changes: 18 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8eb9d8b

Please sign in to comment.