-
Notifications
You must be signed in to change notification settings - Fork 658
Replace forwarded ref instances of useProvidedRefOrCreate with useMergedRefs
#7644
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
Open
iansan5653
wants to merge
34
commits into
main
Choose a base branch
from
replace-use-provided-ref-or-create
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
dcae302
Expose `useMergedRefs` and make ready for React 19
iansan5653 bb26a62
Add unit tests for `useMergedRefs`
iansan5653 3d854c9
Update import paths
iansan5653 8e77831
Deprecate `useProvidedRefOrCreate` and `useRefObjectAsForwardedRef`
iansan5653 973f184
Add changeset
iansan5653 63fca28
Deprecate `useProvidedRefOrCreate` and migrate everything except for …
iansan5653 3b478e3
Migrate `AnchoredOverlay` anchor ref
iansan5653 04e1ca7
Drop more ts-expect-error!
iansan5653 ec31af7
Revert behaviors docs
iansan5653 7bf1ce1
Update packages/react/src/Checkbox/Checkbox.tsx
iansan5653 006cc27
Update useCombinedRefs to useMergedRefs
iansan5653 12abb13
Merge branch 'main' of https://github.com/primer/react into replace-u…
iansan5653 196c083
Fix a few renames
iansan5653 6e410b6
Somehow I missed some spots???
iansan5653 a09ae22
anchorref > anchorRef
iansan5653 90e9941
Revert some files because of a valid use case
iansan5653 dda4382
Update `useProvidedRefOrCreate` to remove deprecation comment
iansan5653 f86b058
Don't return a callback ref in React 18-
iansan5653 c0612a7
Update tests
iansan5653 072e5b9
Merge branch 'main' into replace-use-provided-ref-or-create
iansan5653 44e6850
Fix double import from merging
iansan5653 08b8cfe
Revert changes to `Dialog`
iansan5653 3c00c5e
Merge branch 'main' into replace-use-provided-ref-or-create
iansan5653 a86ba2b
Merge branch 'main' into replace-use-provided-ref-or-create
francinelucca 241bfdd
Revert "Revert changes to `Dialog`"
iansan5653 aeab544
Merge branch 'replace-use-provided-ref-or-create' of https://github.c…
iansan5653 a4a8707
Merge branch 'main' into replace-use-provided-ref-or-create
francinelucca d01c755
Try reverting `FilteredActionList`?
iansan5653 1a09d52
Revert "Try reverting `FilteredActionList`?"
iansan5653 0118db0
Let's try ActionList?
iansan5653 9f39ced
Revert "Let's try ActionList?"
iansan5653 07eeee3
Try PageHeader, TextInput, Tooltip
iansan5653 a120837
Revert "Try PageHeader, TextInput, Tooltip"
iansan5653 7b45d61
Just tooltip
iansan5653 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
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
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
Oops, something went wrong.
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.