Skip to content

User Feedback button diappears after using NextJS's router #12536

Closed as not planned
Closed as not planned

Description

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.13.0

Framework Version

Nextjs 14

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Apply minimum setup for User Feedback (i.e. not using any custom UI nor the User Feedback API)
  2. Visit a NextJS page using User Feedback
  3. The User Feedback button is present on the page
  4. Call something like handleClick, as shown below - utilizing NextJS's router
  import { useRouter } from "next/navigation";

  const router = useRouter();

  const handleClick = () => {
    router.push("/home");
  };

Expected Result

I would expect the User Feedback button to be present at all pages visited through router.push( ) 🙃

Actual Result

The User Feedback button disappears, and is not present in the DOM. The page then needs to be refreshed manually for the User Feedback button to show up again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    • Status

      Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions