react-hook-form / devtools

📋 DevTools to help debug forms.
https://react-hook-form.com/dev-tools
MIT License
638 stars 48 forks source link

Option to persist React Hook Form DevTool in Production #140

Open MatejFacko opened 2 years ago

MatejFacko commented 2 years ago

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?

bluebill1049 commented 2 years ago

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

joelpierre commented 1 year ago

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.

MatejFacko commented 1 year ago

@joelpierre exactly.

jakobsuckow commented 1 year ago

+1

maangs commented 9 months ago

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