-
-
Notifications
You must be signed in to change notification settings - Fork 496
Fix #1050: useField returns undefined on initial render (v7.0.0 regression) #1058
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
Closed
erikras-dinesh-agent
wants to merge
32
commits into
main
from
fix/issue-1050-usefield-undefined-initial
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
138dd5a
Fix #1050: useField returns Form initialValues on first render
03ec690
Fix #1055: Prevent overwriting getter-only properties in renderCompon…
erikras dcf1964
DEBUG: Add logging to diagnose initialValues issue
b114fd1
Fix #1050: Register field synchronously to capture Form initialValues
6631137
Fix #1050: Use v6.5.9 synchronous registration approach
31bc98b
Remove precedence test - not part of original issue
69c3fbb
Fix failing tests: Update test expectations and pause validation
ac12635
Update Field tests for correct initial render behavior
6a763c7
Fix validation count: expect 3 calls instead of 2
e7eee71
Fix validation count: back to 2 (pauseValidation prevents sync call)
e3837b5
Fix #1055: Remove spreading of lazy state in FormSpy renderProps (#1059)
erikras-richard-agent 76616e6
Fix #1050: useField returns Form initialValues on first render (#1060)
erikras-richard-agent 19cbe2c
Fix: Support type='select' for multiple select defaulting to [] (#1061)
erikras-richard-agent c8e8fbc
Fix: Update test expectation for validation call count
erikras-dinesh-agent d8e1a56
Refactor: Use useSyncExternalStore for #1050 fix
erikras-dinesh-agent b27453b
Fix: Address CodeRabbit issues with useSyncExternalStore
erikras-dinesh-agent 759d95c
Fix: Address CodeRabbit DRY, stale state, and nested path issues
erikras-dinesh-agent d7a8d90
Fix: Use Final Form's getIn and support defaultValue + live values
erikras-dinesh-agent 5bc2c21
Fix: Use subscription callback state in getSnapshot
erikras-dinesh-agent e08e6ea
Fix: Default data to {} and update test for useSyncExternalStore
erikras-dinesh-agent 31ad254
Add use-sync-external-store shim for React 16.8+ compatibility
erikras-dinesh-agent a708212
Fix: Separate initial from value in fallback state
erikras-dinesh-agent c52d897
Merge main into fix/issue-1050-usefield-undefined-initial
2e9a798
Fix select multiple handling for both component and type props
3cffe3e
Remove package-lock.json (using yarn, not npm)
01e23c5
Merge main - keep useSyncExternalStore implementation
aceb1b8
Fix CodeRabbit review comments
b4c1801
Remove unused imports and variables
093a2f0
Apply hasOwnProperty fix consistently and improve comment
0061dd8
Fix: Compute dirty in fallback FieldState by comparing value and initial
ef48a8d
Fix: Use custom isEqual comparator in buildFallbackFieldState
6d0f2eb
Fix: Add type to useEffect dependency array
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| declare module 'use-sync-external-store/shim' { | ||
| export * from 'use-sync-external-store'; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.