Comments (3)
I'm working on a blog post about this exact topic https://gist.github.com/jamiekyle-eb/47a2cbf47d05cfd53537dc49708481d4 [Edit: I deleted this draft because people decided to share it on Reddit, fuck off whoever read "I'm working on a blog post" and decided to share it]
It's not that Unstated Next can offer better performance, it's that Redux opts out of React's better performance (because it opts out of React's component model).
from unstated-next.
useSelector() will also subscribe to the Redux store, and run your selector whenever an action is dispatched.
Yes, it falls into the same pitfalls.
I don't see how Redux could ever fix this problem (without a major subtractive/breaking change). It's a problem with its core architecture.
from unstated-next.
@jamiebuilds Do you think Redux still opts out of React's component model with it's new integration with React hooks?
from unstated-next.
Related Issues (20)
- Use a published library - Error: Component must be wrapped with <Container.Provider> HOT 1
- Translate to Portuguese
- Important React.memo tip
- Can selectors be supported? HOT 4
- Unstated-next with Next.js and SSR HOT 1
- Can I use unstated-next to store non-serializable data? HOT 1
- TypeError: useHook is not a function with Next.js HOT 1
- Reusable functions that leverage Containers outside components HOT 1
- Error: Component must be wrapped with <Container.Provider> HOT 9
- Interdependent containers and asynchronous operations HOT 3
- Can't compose containers manually? HOT 6
- Could you add something so that you can use the provider and the context in the same component? Maybe add an HOC like withContainer()? HOT 3
- Ideas for covering more use cases HOT 1
- all containers on the top level of my react application
- Why Unstated? HOT 2
- How to produce types for Containers?
- Testing UI using unstated-next
- [Question] How to use addEventListener in unstated-next
- Reducing re-renders useCallback optimization should use functional updates
- Container.useContainer() vs useContainer(Container)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unstated-next.