Skip to content

Where did useContextSelectors go? #24250

Answered by layershifter
richard-ejem asked this question in Q&A
Discussion options

You must be logged in to vote

Do you mean a hook from @fluentui/react-context-selector?

In Fluent UI N* codebase it lives now under @fluentui/react-bindings. For Fluent UI v9 we decided to remove it by multiple reasons.

  • Its implementation was too complicated and didn't work well with new changes required to make it work in Concurrent mode
  • We are looking forward for getting it in React itself (I mean useContextSelector), but there is a zero chance that we will get useContextSelectors. So in future will not have a change to replace it with first party implementation if we would keep it for v9.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@richard-ejem
Comment options

@layershifter
Comment options

Answer selected by micahgodbolt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants