Skip to content

Commit

Permalink
feat(react): add useFeatureFlag to experimental entrypoint (#5074)
Browse files Browse the repository at this point in the history
* feat(react): add useFeatureFlag to experimental entrypoint

* chore: add changeset

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Oct 7, 2024
1 parent bd99a71 commit e4965ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-fireants-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Add the `useFeatureFlag` hook to `@primer/react/experimental`
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
"type UnderlinePanelsPanelProps",
"type UnderlinePanelsProps",
"type UnderlinePanelsTabProps",
"useFeatureFlag",
"useOverflow",
"useSlots",
]
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export {UnderlinePanels} from './UnderlinePanels'
export type {UnderlinePanelsProps, UnderlinePanelsTabProps, UnderlinePanelsPanelProps} from './UnderlinePanels'

export {SkeletonBox, SkeletonText, SkeletonAvatar} from './Skeleton'
export {FeatureFlags, DefaultFeatureFlags} from '../FeatureFlags'
export {FeatureFlags, DefaultFeatureFlags, useFeatureFlag} from '../FeatureFlags'
export type {FeatureFlagsProps} from '../FeatureFlags'

export {FilteredActionList} from '../FilteredActionList'
Expand Down

0 comments on commit e4965ed

Please sign in to comment.