Skip to content

Improve route handling and effect cleanup in pages/_app.tsx #9

@coderabbitai

Description

@coderabbitai

Description

The current implementation in pages/_app.tsx has several potential issues:

  1. Direct access to location without checking for the window object.
  2. Missing cleanup function in the useEffect hook.
  3. Not using Next.js router for path detection.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions