Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.0.11",
"version": "1.0.12",
"description": "Speed Insights is a tool for measuring web performance and providing suggestions for improvement.",
"keywords": [
"speed-insights",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/nextjs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { computeRoute } from '../utils';

export const useRoute = (): string | null => {
const params = useParams();
const searchParams = useSearchParams();
const searchParams = useSearchParams() || new URLSearchParams();
const path = usePathname();

const finalParams = {
Expand Down