fix(react-headless-components-preview): export useContextValues for components requiring context in render functions#36300
Merged
dmytrokirpa merged 3 commits intoJun 11, 2026
Conversation
…t in render functions - Dropdown: export useDropdownContextValues - Provider: export useProviderContextValues - Rating: export useRatingContextValues - RatingDisplay: export useRatingDisplayContextValues - Field: export useFieldContextValues - TabList: export useTabListContextValues - Accordion components: export context values hooks These components have render functions that accept context as the second parameter, so the useContextValues hooks must be exported for consumers to create context values when calling render functions directly.
|
Pull request demo site: URL |
📊 Bundle size report
🤖 This report was generated against 7786a3225f3b7108552a5b1aa0da27359966e5c1 |
Hotell
approved these changes
Jun 11, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description
This PR ensures that all headless components with render functions accepting context as the second parameter properly export their
useContextValueshooks.Components Fixed
useDropdownContextValuesuseProviderContextValuesuseRatingContextValuesuseRatingDisplayContextValuesuseFieldContextValuesuseTabListContextValuesuseAccordionContextValuesuseAccordionHeaderContextValuesuseAccordionItemContextValuesWhy?
Components with render functions like
renderDropdown(state, contextValues)require consumers to provide context values when calling the render function directly. TheseuseContextValueshooks were already implemented but not exported, breaking the API contract for direct render function usage.Changes Made
useContextValuesexports at component-level index filesuseContextValuesexports at package-level entry points