devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Option to persist React Hook Form DevTool in Production

Open MatejFacko opened this issue 3 years ago • 6 comments

It would be nice to have an option to display DevTool also in Production env.

For inspiration nice workaround was introduced by ReactQuery here: https://github.com/TanStack/query/discussions/3296 . Would it be possible something similar also here?

MatejFacko avatar Jun 23 '22 12:06 MatejFacko

why would you want to ship dev tool to your prod code? it will incase your package size quite a lot.

bluebill1049 avatar Jul 01 '22 11:07 bluebill1049

Valid reason would be, you have lower environments... like QA, Staging, Development etc and you want to interact with the dev tools. When deploying to these environments it is in essence a "production" build. I have this exact use case with ReactQuery and I hide it in the main/master production environment.

joelpierre avatar Dec 13 '22 14:12 joelpierre

@joelpierre exactly.

MatejFacko avatar Dec 13 '22 14:12 MatejFacko

+1

jakobsuckow avatar Jul 31 '23 06:07 jakobsuckow

I can't get the devtools to work when used in module federation (remote app), and this might be the solution for just that.

maangs avatar Dec 02 '23 14:12 maangs