use-context-selector icon indicating copy to clipboard operation
use-context-selector copied to clipboard

React useContextSelector hook in userland

Results 21 use-context-selector issues
Sort by recently updated
recently updated
newest added

Works with fix from 1.4.3, but broken again on 1.4.4 ![image](https://github.com/dai-shi/use-context-selector/assets/26100016/a4862354-c96d-4f04-92ef-c84c41d97c70)

Components used useContextSelector with return save value always rerenders. Example https://codesandbox.io/s/musing-poincare-hz2g6g?file=/src/App.js

Awesome library! I recently became aware of another library maintained by Microsoft that purportedly has the same behavior, [`@fluentui/react-context-selector`](https://github.com/microsoft/fluentui/tree/master/packages/react-components/react-context-selector) I am inquiring to understand the difference between their implementation and...

Hey, I have a context object that contains multiple things: ```ts export type MyStoreType = { currentColor: string; currentTool: "pan" | "pen" | "eraser"; currentView: number; } export const MyStoreContext...

I would like to use `mutative` -> https://github.com/mutativejs/use-mutative `useMutativeReducer` to use and update the reducer for the context ```tsx const Provider = ({ children }: { children: ReactNode }) =>...

## Question I found this library by looking for a way to enhance/improve the functionality of `React.Context` So I have some questions about what not to do, best practice usage,...

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.0.11 to 6.1.6. Release notes Sourced from vite's releases. v6.1.6 Please refer to CHANGELOG.md for details. v6.1.5 Please refer to CHANGELOG.md for details. v6.1.4 Please refer to...

dependencies
javascript

Quite a few people reached out to this library for render optimization and performance. Unfortunately, the goal of this library is slightly different from the "performance" people look for. For...

Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 3.0.4 to 3.0.5. Release notes Sourced from vitest's releases. v3.0.5 This release includes security patches for: Remote Code Execution when accessing a malicious website while Vitest API...

dependencies

Hi @dai-shi. I want to consult wheather you see any obstacles to use your context selector in react 19 app?