Skip to content

dx: useNotifications.ts is dead scaffold code — unused duplicate of use-notifications.ts #281

Description

@Austinaminu2

Problem

`hooks/useNotifications.ts` (PascalCase) is a second, differently-cased hook exporting the same name `useNotifications`, whose `poll()` body is entirely commented out as a placeholder, and which lacks a `'use client'` directive. Repo-wide grep shows zero importers — only `hooks/use-notifications.ts` (kebab-case) is actually used, by `components/layout/notification-bell.tsx`.

Location

`hooks/useNotifications.ts` (entire file, unused)

Impact

Dead scaffold code that risks confusing future contributors into editing or importing the wrong file (two files with the same exported name is an easy mistake to make).

Suggested fix

Delete `hooks/useNotifications.ts` since it has no importers and its functionality is superseded by `use-notifications.ts`.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendNext.js frontend

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions