Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fluentui/react-context-selector

microsoft1.7mMIT9.1.76TypeScript support: included

React useContextSelector hook in userland

readme

Fluent UI Web

Build Status GitHub contributors GitHub top language Twitter Follow

Fluent UI React is shipping its v9 final stable release. Visit the Fluent UI React v9 Release page on the wiki to learn more about the upcoming release schedule.

Fluent UI web represents a collection of utilities, React components, and Web Components for building web applications.

This repo is home to 3 separate projects today. Combining Fluent UI React v9 components with Fluent UI React v8 or v0 components is possible and allows gradual migration to Fluent UI v9.

The following table will help you navigate the 3 projects and understand their differences.

| | React Components (v9) | React (v8) | Web Components | |---| ----- | --------------- | -------------- | | Overview | New, future-proof and forward looking | Mature | Web Component implementation of Fluent UI. | | Used By | Microsoft 365 | Office | Edge | | Read Me | README.md | README.md| README.md | | Changelog | CHANGELOG.md | CHANGELOG.md | CHANGELOG.md | | Repo | packages/react-components | ./packages/react | ./packages/web-components | | Quick Start | Quick Start | Quick Start | See README.md | | Docs | https://react.fluentui.dev/ | aka.ms/fluentui-react | aka.ms/fluentui-web-components | | NPM | @fluentui/react-components | @fluentui/react| @fluentui/web-components | | Version | npm version | npm version | npm version | | Issues | Fluent UI React Components GitHub Issues | Fluent UI React GitHub Issues | Fluent UI Web Components GitHub Issues |

Why are there two React versions? Fluent UI v8 is still widely used. We encourage you to migrate to Fluent UI v9. See the Migration overview.

FluentUI Insights

Fluent UI Insights is a series that describes the design and decisions behind the Fluent UI design system.

EP01: Positioning EP02: Styling EP03: Griffel
Watch EP01: Positioning Watch EP02: Styling Watch EP03: Griffel
EP04: Foundational APIs EP05: Theming EP06: Accessible by default
Watch EP04: Foundational APIs Watch EP05: Theming Watch EP06: Accessible by default

Licenses

All files on the Fluent UI React GitHub repository are subject to the MIT license. Please read the License file at the root of the project.

Usage of the fonts and icons referenced in Fluent UI React is subject to the terms of the assets license agreement.

Changelog

You can view the complete list of additions, fixes, and changes in the CHANGELOG.md file for each package.

Looking for Office UI Fabric React?

The Office UI Fabric React project has evolved to Fluent UI.

The office-ui-fabric-react repo is now this repo (fluentui in the Microsoft organization)! The name change should not disrupt any current Fabric usage, repo clones, pull requests, or issue reporting. Links should redirect to the new location. The library formerly known as office-ui-fabric-react is now available as @fluentui/react (see above table for more information).

We have a lot in store for Fluent UI - Read our announcement here.

Looking for Fluent UI React Northstar?

Fluent UI React Northstar has been superseded by Fluent UI React Components v9. For more details about Fluent UI React Northstar, see its README.md.


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

changelog

Change Log - @fluentui/react-context-selector

This log was last generated on Wed, 16 Apr 2025 19:37:27 GMT and should not be manually modified.

9.1.76

Wed, 16 Apr 2025 19:37:27 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.19.0 (PR #34166 by beachball)

9.1.75

Thu, 27 Mar 2025 21:12:51 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.23 (PR #34034 by beachball)

9.1.74

Wed, 19 Mar 2025 15:40:43 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.22 (PR #34032 by beachball)

9.1.73

Tue, 11 Mar 2025 18:58:54 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.21 (PR #33927 by beachball)

9.1.72

Wed, 22 Jan 2025 14:00:21 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.20 (PR #33631 by beachball)

9.1.71

Mon, 16 Dec 2024 16:26:49 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.19 (PR #33468 by beachball)

9.1.70

Fri, 06 Dec 2024 12:53:46 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.18 (PR #33372 by beachball)

9.1.69

Mon, 11 Nov 2024 10:01:11 GMT Compare changes

Patches

9.1.68

Tue, 15 Oct 2024 17:17:53 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.16 (PR #32999 by beachball)

9.1.67

Mon, 23 Sep 2024 12:40:17 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.15 (PR #32840 by beachball)

9.1.66

Tue, 10 Sep 2024 10:19:12 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.14 (PR #32494 by beachball)

9.1.65

Tue, 23 Jul 2024 20:13:14 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.13 (PR #32067 by beachball)

9.1.64

Mon, 15 Jul 2024 17:25:26 GMT Compare changes

Patches

9.1.63

Mon, 01 Jul 2024 20:30:54 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.11 (PR #31861 by beachball)

9.1.62

Mon, 17 Jun 2024 07:34:16 GMT Compare changes

Patches

9.1.61

Thu, 06 Jun 2024 15:26:32 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.10 (PR #31586 by beachball)

9.1.60

Mon, 20 May 2024 12:45:09 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.9 (PR #26682 by beachball)

9.1.59

Mon, 06 May 2024 12:55:02 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.8 (PR #31271 by beachball)

9.1.58

Tue, 23 Apr 2024 08:17:49 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.7 (PR #31113 by beachball)

9.1.57

Tue, 02 Apr 2024 09:48:01 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.6 (PR #30644 by beachball)

9.1.56

Mon, 18 Mar 2024 19:50:46 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.5 (PR #30600 by beachball)

9.1.55

Fri, 15 Mar 2024 21:43:49 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.4 (PR #30740 by beachball)

9.1.54

Thu, 07 Mar 2024 19:33:22 GMT Compare changes

Patches

9.1.53

Wed, 28 Feb 2024 02:34:19 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.2 (PR #30639 by beachball)

9.1.52

Tue, 20 Feb 2024 14:22:30 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.1 (PR #30543 by beachball)

9.1.51

Tue, 30 Jan 2024 23:16:54 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.18.0 (PR #29983 by beachball)

9.1.50

Tue, 23 Jan 2024 15:11:00 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.17.0 (PR #30359 by beachball)

9.1.49

Thu, 18 Jan 2024 14:25:03 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.16.1 (PR #30046 by beachball)

9.1.48

Wed, 17 Jan 2024 16:18:50 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.16.0 (PR #30339 by beachball)

9.1.47

Tue, 16 Jan 2024 13:14:16 GMT Compare changes

Patches

9.1.46

Mon, 08 Jan 2024 16:24:28 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.15.6 (PR #30179 by beachball)

9.1.45

Wed, 03 Jan 2024 09:26:44 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.15.5 (PR #30163 by beachball)

9.1.44

Mon, 18 Dec 2023 14:40:46 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.15.4 (PR #30103 by beachball)

9.1.43

Thu, 14 Dec 2023 09:58:46 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.15.3 (PR #30056 by beachball)

9.1.42

Thu, 09 Nov 2023 17:29:34 GMT Compare changes

Patches

9.1.41

Wed, 18 Oct 2023 17:54:08 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.15.1 (PR #29560 by beachball)

9.1.40

Wed, 11 Oct 2023 13:54:26 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.15.0 (PR #29262 by beachball)

9.1.39

Mon, 09 Oct 2023 20:45:44 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.14.2 (PR #29364 by beachball)

9.1.38

Thu, 05 Oct 2023 15:25:35 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.14.1 (PR #29412 by beachball)

9.1.37

Wed, 04 Oct 2023 08:45:47 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.14.0 (commit by beachball)

9.1.36

Tue, 26 Sep 2023 17:49:04 GMT Compare changes

Patches

9.1.35

Tue, 26 Sep 2023 15:32:02 GMT Compare changes

Patches

9.1.34

Wed, 06 Sep 2023 13:31:31 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.13.3 (PR #29080 by beachball)

9.1.33

Tue, 05 Sep 2023 15:39:04 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.13.2 (PR #29055 by beachball)

9.1.32

Tue, 05 Sep 2023 13:29:20 GMT Compare changes

Patches

9.1.31

Tue, 29 Aug 2023 12:57:36 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.13.0 (PR #29005 by beachball)

9.1.30

Thu, 24 Aug 2023 10:26:35 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.12.0 (PR #28973 by beachball)

9.1.29

Wed, 23 Aug 2023 12:01:49 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.11.2 (PR #28957 by beachball)

9.1.28

Fri, 11 Aug 2023 12:14:26 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.11.1 (PR #28808 by beachball)

9.1.27

Fri, 04 Aug 2023 08:52:58 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.11.0 (commit by beachball)

9.1.26

Mon, 03 Jul 2023 11:57:14 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.10.1 (PR #28412 by beachball)

9.1.25

Wed, 28 Jun 2023 11:12:25 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.10.0 (PR #28320 by beachball)

9.1.24

Mon, 26 Jun 2023 09:53:55 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.9.4 (PR #28296 by beachball)

9.1.23

Tue, 20 Jun 2023 12:39:07 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.9.3 (PR #28229 by beachball)

9.1.22

Wed, 31 May 2023 06:46:23 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.9.2 (PR #28054 by beachball)

9.1.21

Thu, 25 May 2023 10:00:48 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.9.1 (PR #27988 by beachball)

9.1.20

Thu, 18 May 2023 00:39:05 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.9.0 (PR #27834 by beachball)

9.1.19

Fri, 12 May 2023 20:28:24 GMT Compare changes

Patches

9.1.18

Mon, 17 Apr 2023 17:54:02 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.8.0 (PR #27564 by beachball)

9.1.17

Wed, 12 Apr 2023 09:31:45 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.7.4 (PR #27274 by beachball)

9.1.16

Tue, 04 Apr 2023 18:44:50 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.7.3 (PR #27434 by beachball)

9.1.15

Tue, 21 Mar 2023 21:23:30 GMT Compare changes

Patches

9.1.14

Thu, 16 Mar 2023 14:36:59 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.7.1 (PR #27229 by beachball)

9.1.13

Mon, 13 Mar 2023 08:58:26 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.7.0 (PR #27161 by beachball)

9.1.12

Fri, 10 Mar 2023 07:14:01 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.6.2 (PR #27157 by beachball)

9.1.11

Wed, 08 Mar 2023 17:42:31 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.6.1 (PR #27127 by beachball)

9.1.10

Wed, 15 Feb 2023 11:44:52 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.6.0 (PR #26845 by beachball)

9.1.9

Mon, 13 Feb 2023 23:43:14 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.5.3 (PR #26814 by beachball)

9.1.8

Fri, 10 Feb 2023 08:50:02 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.5.2 (commit by beachball)

9.1.7

Tue, 31 Jan 2023 19:53:58 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.5.1 (PR #26557 by beachball)

9.1.6

Thu, 26 Jan 2023 13:30:55 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.5.0 (PR #26496 by beachball)

9.1.5

Mon, 09 Jan 2023 14:35:02 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.4.0 (PR #26255 by beachball)

9.1.4

Wed, 04 Jan 2023 01:41:01 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.3.1 (PR #26114 by beachball)

9.1.3

Tue, 20 Dec 2022 14:59:34 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.3.0 (PR #26047 by beachball)

9.1.2

Thu, 17 Nov 2022 23:05:38 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.2.2 (PR #25683 by beachball)

9.1.1

Fri, 11 Nov 2022 14:58:01 GMT Compare changes

Patches

9.1.0

Wed, 02 Nov 2022 11:57:50 GMT Compare changes

Minor changes

9.0.5

Thu, 20 Oct 2022 08:39:32 GMT Compare changes

Patches

9.0.4

Thu, 13 Oct 2022 11:03:06 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.1.1 (PR #25181 by beachball)

9.0.3

Thu, 15 Sep 2022 09:50:08 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.1.0 (PR #24808 by beachball)

9.0.2

Thu, 14 Jul 2022 21:21:11 GMT Compare changes

Patches

9.0.1

Thu, 14 Jul 2022 17:06:26 GMT Compare changes

Patches

  • Bump @fluentui/react-utilities to v9.0.1-0 (PR #23897 by beachball)

9.0.0

Tue, 28 Jun 2022 15:13:34 GMT Compare changes

Patches

Changes

9.0.0-rc.10

Tue, 31 May 2022 21:28:50 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-rc.10 (PR #23325 by beachball)

9.0.0-rc.9

Mon, 23 May 2022 12:14:24 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-rc.9 (PR #23030 by beachball)

9.0.0-rc.8

Thu, 05 May 2022 18:26:23 GMT Compare changes

Changes

9.0.0-rc.7

Wed, 04 May 2022 13:26:42 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-rc.7 (PR #22786 by beachball)

9.0.0-rc.6

Tue, 19 Apr 2022 19:17:22 GMT Compare changes

Changes

  • Move scheduler to a peer dependency and allow appropriate versions for React 16 or 17 (PR #21769 by elcraig@microsoft.com)
  • Bump @fluentui/react-utilities to v9.0.0-rc.6 (PR #21995 by beachball)

9.0.0-rc.5

Fri, 04 Mar 2022 05:17:36 GMT Compare changes

Changes

9.0.0-rc.4

Tue, 01 Mar 2022 02:17:40 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-rc.4 (PR #21884 by beachball)

9.0.0-rc.3

Fri, 18 Feb 2022 13:35:31 GMT Compare changes

Changes

9.0.0-rc.1

Thu, 10 Feb 2022 08:51:09 GMT Compare changes

Changes

9.0.0-beta.4

Thu, 25 Nov 2021 08:34:13 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-beta.4 (PR #20762 by beachball)

9.0.0-beta.3

Fri, 12 Nov 2021 13:25:22 GMT Compare changes

Changes

9.0.0-beta.2

Wed, 27 Oct 2021 12:14:24 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-beta.2 (PR #20353 by beachball)

9.0.0-beta.1

Wed, 06 Oct 2021 10:37:22 GMT Compare changes

Changes

9.0.0-alpha.39

Tue, 05 Oct 2021 09:28:07 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-alpha.56 (PR #20081 by beachball)

9.0.0-alpha.38

Fri, 01 Oct 2021 14:13:08 GMT Compare changes

Changes

9.0.0-alpha.36

Mon, 27 Sep 2021 08:06:00 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-alpha.53 (PR #19981 by beachball)

9.0.0-alpha.35

Fri, 24 Sep 2021 09:17:17 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-alpha.52 (PR #19950 by beachball)

9.0.0-alpha.34

Thu, 23 Sep 2021 08:21:34 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-alpha.51 (commit by beachball)

9.0.0-alpha.33

Wed, 22 Sep 2021 10:10:07 GMT Compare changes

Changes

  • Bump @fluentui/react-utilities to v9.0.0-alpha.50 (commit by beachball)

9.0.0-alpha.32

Fri, 17 Sep 2021 07:35:26 GMT Compare changes

Changes

9.0.0-alpha.31

Thu, 16 Sep 2021 07:38:39 GMT Compare changes

Changes

9.0.0-alpha.30

Tue, 14 Sep 2021 20:09:02 GMT Compare changes

Changes

9.0.0-alpha.29

Fri, 10 Sep 2021 16:31:53 GMT Compare changes

Changes

9.0.0-alpha.28

Fri, 10 Sep 2021 07:39:51 GMT Compare changes

Changes

9.0.0-alpha.27

Mon, 06 Sep 2021 07:34:53 GMT Compare changes

Changes

9.0.0-alpha.26

Wed, 01 Sep 2021 07:39:56 GMT Compare changes

Changes

9.0.0-alpha.25

Tue, 31 Aug 2021 07:37:47 GMT Compare changes

Changes

9.0.0-alpha.24

Fri, 20 Aug 2021 07:37:28 GMT Compare changes

Changes

9.0.0-alpha.23

Thu, 19 Aug 2021 07:41:35 GMT Compare changes

Changes

9.0.0-alpha.22

Fri, 06 Aug 2021 07:35:14 GMT Compare changes

Changes

9.0.0-alpha.21

Tue, 03 Aug 2021 07:39:30 GMT Compare changes

Patches

Changes

9.0.0-alpha.20

Mon, 02 Aug 2021 07:36:20 GMT Compare changes

Changes

9.0.0-alpha.19

Fri, 23 Jul 2021 07:38:19 GMT Compare changes

Changes

9.0.0-alpha.18

Thu, 22 Jul 2021 07:36:55 GMT Compare changes

Changes

9.0.0-alpha.17

Thu, 15 Jul 2021 07:36:18 GMT Compare changes

Changes

9.0.0-alpha.16

Fri, 09 Jul 2021 07:39:31 GMT Compare changes

Patches

Changes

9.0.0-alpha.15

Fri, 02 Jul 2021 23:15:55 GMT Compare changes

Changes

9.0.0-alpha.14

Fri, 02 Jul 2021 07:37:06 GMT Compare changes

Changes

9.0.0-alpha.13

Tue, 15 Jun 2021 07:40:20 GMT Compare changes

Changes

9.0.0-alpha.12

Mon, 07 Jun 2021 07:38:15 GMT Compare changes

Patches

Changes

9.0.0-alpha.11

Fri, 04 Jun 2021 07:37:23 GMT Compare changes

Changes

9.0.0-alpha.10

Wed, 26 May 2021 07:35:43 GMT Compare changes

Changes

9.0.0-alpha.9

Fri, 21 May 2021 07:34:54 GMT Compare changes

Changes

9.0.0-alpha.8

Thu, 20 May 2021 07:41:54 GMT Compare changes

Patches

Changes

9.0.0-alpha.7

Wed, 19 May 2021 07:34:20 GMT Compare changes

Changes

9.0.0-alpha.6

Mon, 03 May 2021 07:45:19 GMT Compare changes

Changes

9.0.0-alpha.5

Fri, 30 Apr 2021 07:42:23 GMT Compare changes

Patches

Changes

9.0.0-alpha.4

Fri, 23 Apr 2021 07:37:10 GMT Compare changes

Patches

Changes

9.0.0-alpha.3

Thu, 22 Apr 2021 07:33:28 GMT Compare changes

Changes

9.0.0-alpha.2

Wed, 31 Mar 2021 00:53:43 GMT Compare changes

Patches

9.0.0-alpha.1

Tue, 30 Mar 2021 07:34:45 GMT Compare changes

Changes

0.53.4

Mon, 15 Mar 2021 07:36:20 GMT Compare changes

Patches

0.53.3

Fri, 26 Feb 2021 01:16:27 GMT Compare changes

Patches

0.53.2

Mon, 22 Feb 2021 12:26:22 GMT Compare changes

Patches

0.53.0

Thu, 18 Feb 2021 19:38:50 GMT

Minor changes

Patches