4 ms·
Hah, beat me to posting this! I'm a Redux maintainer. I'm really excited about the changes in this release. They're primarily internal, but it should help Re
by acemarke 8y ago
Hah, beat me to posting this!
I'm a Redux maintainer. I'm really excited about the changes in this release. They're primarily internal, but it should help React-Redux work a lot better with React's changes down the road.
In case anyone's wondering, this _should_ be a drop-in release for most users. Just bump your package version and update. If you do run into any problems, please file an issue!
I recently wrote a blog post that goes into more details on how the implementation has evolved over time, and why we changed several aspects of behavior for this release:
https://blog.isquaredsoftware.com/2018/11/react-redux-history-implementation/ https://blog.isquaredsoftware.com/2018/11/react-redux-histor...
If anyone's got questions, ask away!
- revskill 8y agoWhen will Redux have its cache ?
- acemarke 8y agoI assume you're talking about in relation to React's upcoming "Suspense" capabilities? No specific timeline for that, largely because Suspense itself is still very much in development. The React team recently published a roadmap for features like Hooks and Suspense [0], and the data fetching aspects aren't expected until sometime next year. So, there's not a lot we can do on our end until there's a lot more clarity on how to actually work with this stuff in React itself. Having said that, I don't immediately see anything that would prevent us from having a React Suspense cache that is backed by a Redux store. I've seen a couple people playing around with hacky prototypes that look intriguing. There's some other concerns we'll need to figure out around React's upcoming "Concurrent" rendering capabilities as well. I wrote up some thoughts in a Reddit comment recently [1]. [0] https://reactjs.org/blog/2018/11/27/react-16-roadmap.html https://reactjs.org/blog/2018/11/27/react-16-roadmap.html [1] https://www.reddit.com/r/reactjs/comments/9xnvs2/how_does_concurrent_react_update_priorities_work/e9toant/?context=3 https://www.reddit.com/r/reactjs/comments/9xnvs2/how_does_co...
- nothrows 8y agoI'm curious about the direction react redux will take with the new hook api. What will the react redux hooks will look like? Will that be something that lands soon in an alpha?
- tlrobinson 8y agoHere's the issue for hooks: https://github.com/reduxjs/react-redux/issues/1063 https://github.com/reduxjs/react-redux/issues/1063
- acemarke 8y agoYeah, @tlrobinson linked our issue discussing it. The big blocker for us shipping a `useRedux()` hook is that there's currently no way for a function component to bail out of re-rendering once it starts, and calling `useContext()` subscribes that function component to _any_ update of the context value. The React team has an issue tracking that (https://github.com/facebook/react/issues/14110 https://github.com/facebook/react/issues/14110 ), and as far as I know that's something they intend to include before 16.7 goes final. Once that's available, we can look at implementing an official `useRedux()` hook, and ship it in a future release. That same release would likely also rewrite the guts of `connect` to actually use hooks internally as well. I already threw together a proof-of-concept PR that does this (https://github.com/reduxjs/react-redux/pull/1065 https://github.com/reduxjs/react-redux/pull/1065 ).
- h1d 8y ago> Just bump your package version and update. If you do run into any problems, please file an issue! I have nothing against the package but is this the norm for package development these days to treat people like testers?
- seattle_spring 8y agoWow, way to assume the worst out of something that's obviously well intentioned. They're saying, "we've tested this to work without any code changes, but since we're not Gods there might be some edge case we missed. In that case, please let us know so we can fix it for you and everyone else who might have the same issue."
- acemarke 8y agoWe have an extensive unit test suite for React-Redux [0]. v6 passes that test suite, and the test suites for v5 and v6 are largely the same (minus tests that related to specific parts of the implementation, like the switch from old to new context). We published beta releases and asked for feedback [1]. I honestly would really have liked more actual responses, but at this point we have no indication that there are any issues beyond what's expected from the known published breaking changes. At some point, you just gotta ship it :) In the real world, people always use software in ways that you didn't anticipate. I'm pretty confident in the quality of this release, but I'm also realistic and know that it's quite possible there's some edge case that we weren't aware of. So, I'm just saying that if anyone sees issues, we'd like to know about them. [0] https://github.com/reduxjs/react-redux/tree/9d50c2bd5764247710d37c1bfac8676f095421cf/test/components https://github.com/reduxjs/react-redux/tree/9d50c2bd57642477... [1] https://github.com/reduxjs/react-redux/issues/1083 https://github.com/reduxjs/react-redux/issues/1083