Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESET FORM button needs to be programmed (at top right of screen) #64

Open
GameDevDebbie opened this issue Dec 18, 2019 · 2 comments
Open
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@GameDevDebbie
Copy link

No description provided.

@froi froi added the help wanted Extra attention is needed label Dec 18, 2019
@Fran33
Copy link
Contributor

Fran33 commented Dec 19, 2019

I can provide more detailed description if desired, but my basic understanding of the problem is that

Nav and CaseTable respond to Reset button because they directly reference data via value.caseData.evaluatorName and value.caseData.case.charges

ClientInfoTable and other views do not respond to Reset button because they use local variables via
const [dob, setDob] = useState(value.caseData.client.dob);

One solution involves removing the use of useState and setting the value of a field like
value={value.caseData.evaluatorName}
rather than
value={name}
There might be other solutions that connect useState to useContext.
Not sure yet, still investigating.

@froi froi added the good first issue Good for newcomers label Feb 17, 2020
@Fran33
Copy link
Contributor

Fran33 commented Mar 4, 2020

found a useEffect and props fix for this.
pull request submitted for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants