Skip to content

Overly generic results and missing information in context #358

Description

@conradkoh

This has been a recurring problem for me. I optimistically use the latest version published always, but frequently find major problems with the changes.

This is how I apply the code to my next.js project:

<Script
            src="//unpkg.com/react-grab/dist/index.global.js"
            crossOrigin="anonymous"
            strategy="afterInteractive"
          />

The Problem

By far the most major issue is that the hovered component name does not actually appear anywhere in the clipboard context.

Image

This is what is copied to the clipboard:

[<div> in ChatroomDashboard @/Users/conradkoh/Documents/Repos/chatroom/apps/webapp/src/modules/chatroom/ChatroomDashboard.tsx:400]

This has happened so many times on and off, and will get resolved over time. For example, I just reloaded the page somewhere in the last 5 mins and now it shows this, which is much better.

[<div class="flex items-cent..." /> in WorkspaceStatusContent in WorkspaceBottomBar in ChatroomDashboard]

Solution

I think adding some basic test scaffolding could be helpful (sorry if this already exists, I haven't poured through the code). Verification: Ensure that the text from the selected element is found in the content copied to clipboard.


Thanks for building this tool, it has been really helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions