@fastify/react 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -4
  2. package/virtual/core.jsx +3 -0
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "index.js",
4
4
  "name": "@fastify/react",
5
5
  "description": "The official @fastify/vite renderer for React",
6
- "version": "0.4.0",
6
+ "version": "0.5.0",
7
7
  "files": [
8
8
  "virtual/create.jsx",
9
9
  "virtual/root.jsx",
@@ -37,9 +37,6 @@
37
37
  "devDependencies": {
38
38
  "@biomejs/biome": "^1.5.3"
39
39
  },
40
- "peerDependencies": {
41
- "@fastify/vite": "^6.0.2"
42
- },
43
40
  "publishConfig": {
44
41
  "access": "public"
45
42
  },
package/virtual/core.jsx CHANGED
@@ -49,6 +49,9 @@ export function AppRoute({ head, ctxHydration, ctx, children }) {
49
49
  if (ctx.firstRender) {
50
50
  ctx.data = window.route.data
51
51
  ctx.head = window.route.head
52
+ } else {
53
+ ctx.data = undefined
54
+ ctx.head = undefined
52
55
  }
53
56
 
54
57
  const location = useLocation()