Skip to content
Source
Sign inSign up
TanStack/query

Move dev tools option #2994

Send to my agent
Closedclaytron5000(GitHub profile, opens in a new tab) opened this issue 10 comments

Sometimes the ergonomics of a button- stuck tool is hard to use. Could there be a button, like in native dev tools to pin the query tool to the sides, or top/ bottom

  1. Can you be a bit more specific? What is a button-stuck tool please?

    i think there are already options to position the devtools differently if that’s what you mean..

  2. No problem, I probably shouldn't write features requests while walking the dog.

    Currently we can set the position of the flower tool by passing the position parameter:

    <ReactQueryDevtools position={"top-right"} />

    That puts the flower trigger in the top right corner. However, the drawer always opens at the bottom.

    A user could pass styles and classes in through panelProps. And position the react-query devtools where ever they please.

    What I'm thinking is a toggler within the devtools that allows the user to switch the drawer position on the fly. The example I'm thinking of is the layout switcher in Chrome: image

    This would allow a user to reposition the devtool drawer on the fly as they might switch page layouts, or other window sizes.

  3. ❤️ the idea, would you like to add it?

  4. Yes, I'll work on it. ═════════ Clayton Salem 413-768-8522 ═════════

    On Sun, Nov 21, 2021 at 1:22 AM Dominik Dorfmeister < @.***> wrote:

    ❤️ the idea, would you like to add it?

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/tannerlinsley/react-query/issues/2994#issuecomment-974762811>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABMAD6A5FUG6FUYCC7QSEFLUNCF3RANCNFSM5IN4GYFQ> . Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.

  5. TkDodo added labelspackage: react-query-devtools

  6. @TkDodo @claytron5000 I could work on this if there is no one currently working on it

  7. TkDodo added labelshelp wanted

  8. TkDodo assignedsalamaashoush

  9. @salamaashoush go ahead, I've assigned you to the issue.

  10. Hi, I created https://github.com/nirtamir2/react-query-devtools-extension to solve this problem. It works well in development but I have a little problem with its event when building it for production. You can use it and integrate it back to react query.

    https://twitter.com/NirTamir/status/1508205226884542475

  11. @nirtamir2 this is a pretty cool browser extension, but I am just adding the ability to reposition the current devtools so you don't need to install a browser extension

  12. @TkDodo if you have time could you please have a look at this PR https://github.com/TanStack/query/pull/3678

  13. TkDodo closed this

  14. I would love to be able to hold with the mouse and drag it somewhere else, in case it covers something I want to interact with on the page (or see). It doesn't need to remember the new dragged position after refresh, but simply solve an anecdotal situation

Sign in to join this conversation.