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.
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.
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:
The Problem
By far the most major issue is that the hovered component name does not actually appear anywhere in the clipboard context.
This is what is copied to the clipboard:
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.
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.