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

issue: Initial form context state does not match initial useForm props #11360

Closed
1 task done
jprosevear opened this issue Jan 4, 2024 · 0 comments · Fixed by #11361
Closed
1 task done

issue: Initial form context state does not match initial useForm props #11360

jprosevear opened this issue Jan 4, 2024 · 0 comments · Fixed by #11361
Assignees
Labels
bug Something isn't working

Comments

@jprosevear
Copy link

jprosevear commented Jan 4, 2024

Version Number

7.49.2

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/twilight-mountain-ddvxd8

Steps to reproduce

  1. Go to (https://codesandbox.io/p/sandbox/twilight-mountain-ddvxd8)
  2. Look at console to see formContext: { disabled } state progress
  3. See it starts as "false" and then turns to "true"

Expected behaviour

Since useForm({ disabled: true }); is always true, expect first render with formContext to contain disabled: true.

What browsers are you seeing the problem on?

Chrome

Relevant log output

Form State disabled false
Form State disabled true

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Moshyfawn Moshyfawn added the status: under investigation aware of this issue and pending for investigation label Jan 4, 2024
@Moshyfawn Moshyfawn self-assigned this Jan 4, 2024
@Moshyfawn Moshyfawn added bug Something isn't working and removed status: under investigation aware of this issue and pending for investigation labels Jan 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants