Skip to content

Commit

Permalink
fix: a.useParams is not a function in next app (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy authored Nov 22, 2024
1 parent 4ccaaec commit cd899aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vercel/speed-insights",
"version": "1.2.0-canary.2",
"version": "1.2.0-canary.3",
"description": "Speed Insights is a tool for measuring web performance and providing suggestions for improvement.",
"keywords": [
"speed-insights",
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/nextjs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import React, { Suspense } from 'react';
import { SpeedInsights as SpeedInsightsScript } from '../react';
import type { SpeedInsightsProps } from '../types';
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/react/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use client';

import { useEffect, useRef } from 'react';
import type { SpeedInsightsProps } from '../types';
import { computeRoute, injectSpeedInsights } from '../generic';
Expand Down

0 comments on commit cd899aa

Please sign in to comment.