question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Evaluate current Redux TS port status to determine remaining work for a 5.0 release

See original GitHub issue

Pasting from #4127 :

What are the breaking changes in 5.x? Are the types different enough that it needs a new major? What’s holding it back from getting released?

That’s sorta the issue - we’re not sure what the breaking changes are, it’s likely the types would benefit from more changes, and there’s not enough reason to push it live and cause churn in the ecosystem atm 😃

The conversion work was actually done in… late 2019, I think? And it’s been sitting there in master ever since.

Basically, the community contributed the work after we asked for it, and then the whole effort just stalled.

There’s also some tie-in to redux-thunk’s types being stuck in a holding pattern as well.

Basically, what’s live in 4.x right now works well enough, and especially with RTK now being the default, that there just isn’t enough pressing reason to try to push through a 5.0 release any time soon.

I’d like to see 5.0 released, but it needs some meaningful attention to figure out what other types changes might be necessary, and given everything else going on it’s just at the bottom of the priority list for us right now.

If someone else with serious TS knowledge wants to help us out and try to push the current TS port forward by evaluating it and seeing where things stand and how it can be improved, I’d love it.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
markeriksoncommented, Aug 31, 2022

Update since someone asked on Discord:

The notional plan atm is:

  • RTK 1.9 is feature-complete, we “just” need to wrap up a few additional bug fixes and cleanup bits (docs, figuring out how to publish codemods, etc). No hard ETA, but ideally we’d like to get that out in the next couple weeks.
  • After that, it’s time to start actively thinking about RTK 2.0. This will primarily be about dropping backwards compat stuff (IE11, etc): https://github.com/reduxjs/redux-toolkit/issues/958 . Definitely no ETA on that because I don’t know scope yet, but it’s the next major thing to work on.
  • As part of that, I would like to finally put out Redux 5.0 as part of the RTK 2.0 release. I still don’t know if Redux 5.0 actually breaks any TS types, so this issue is still a valid open question. But, if we’re ever going to get that out, doing those releases together makes sense
1reaction
markeriksoncommented, Nov 1, 2021

Yeah, like I quoted above, we’ve always said they should be serializable, and ought to be strings.

Someone over on Twitter said they’d once tried to use Symbols to make them truly unique, but tbh slice namespacing gives you like 95% uniqueness anyway, so I don’t see that as a reason to continue to allow them. As mentioned above, TS enums can have number values, but again why would you do that? We want them to be readable in the DevTools.

So, given that we’ve always effectively said they should be strings, we might as well enforce it.

And stuff like that definitely qualifies as a major 😃

As far as the original topic for this thread: I’ve been working with @JoshuaKGoldberg from CodeCademy on some Redux+TS updates to their codebase, and he just confirmed that redux@5.0.0-alpha.0 dropped in with no issues whatsoever. That’s after we fixed some TS issues that did come up with 4.0.5 -> 4.1.1.

Just a single data point, but it suggests that the TS types in master are pretty consistent with 4.x.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mark Erikson on Twitter: "I filed an issue a few weeks ago asking for ...
Evaluate current Redux TS port status to determine remaining work for a 5.0 release · Issue ... Pasting from #4127 : What are...
Read more >
Usage With TypeScript - Redux
The Redux+TS template for Create-React-App comes with a working example of these patterns already configured.
Read more >
Learn Complete Redux-Toolkit & RTK Query with React in ...
Hello Guys, in this video we are going to have full understanding of Redux -Toolkit & RTK Query with React. We will build...
Read more >
redux 5.0.0-alpha.0 on Node.js Yarn - NewReleases.io
New release redux version 5.0.0-alpha.0 v5.0.0-alpha.0 on Node.js Yarn. ... in #4129: Evaluate current Redux TS port status to determine remaining work for ......
Read more >
Angular 5 Tutorial: Guide to Your First Angular 5 App - Toptal
You will see that we have app.component.ts there with the next bit (this may vary depending on how recent your version of Angular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found