Add `initialIsOpen` prop

Open
#142 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
tooling

Research direction

Start by locating the DevTool component and its existing props, then inspect how its startup open state is set. Add the requested initialIsOpen option so consumers can choose the initial visibility, and verify that the default behavior remains unchanged.

Written by the indexing model from the issue text.

Description

feature request

Hi,
Love RHF and I was happy to discover the existence of this DevTool!

Would it be possible to add an initlaIsOpen prop to have the devtools closed on startup and open it only when I need it? I didn't find any other way to do it.

I would be happy to make a PR to add this feature

Thank you!

Dominant language
TypeScript
Stars
670
Forks
55
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-hook-form/devtools

All issues in react-hook-form/devtools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.