[Feature]: Allow partial selectors for react-context-selector #32132
Labels
Fluent UI react-components (v9)
Needs: Triage 🔍
Status: Not on Roadmap
Issue is not currently on roadmap, no fix planned
Type: Feature
Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
Coming from a redux environment, I was used to doing a lot of this:
Which is a lot nicer/cleaner that having to call the
useAppCtx()
hook multiple times. This causes atoo many re-renders error in ReactJS?
error though. I believe it's because new object gets created every time the selector is run. In order to fix this I had to do something hacky with the selector function:Instead of how the docs show:
Is there any chance we get could this to work by default? Thanks.
Have you discussed this feature with our team
No
Additional context
No response
Validations
Priority
None
The text was updated successfully, but these errors were encountered: