Thanks to for doing all the hard work on implementing the error extraction! The error code extraction saves about 800 bytes out of a production build. The error messages will still show as normal in development, but in production they will reference a specific numeric error code and provide a link to a Redux docs page that has the full error message.Īn example of this is:, which shows the "can't subscribe while reducers are executing" error. We now extract all of our error messages from production builds in order to save on bundle size, using a technique inspired from React's error code extraction. Changelog Error Message Extraction and Improvements Overall, version 4.1 shrinks from 2.6K min+gz to 1.6K min+gz thanks to these changes.īe sure to check out the Redux Toolkit 1.6 alpha containing our new "RTK Query" data fetching APIs! It also includes Redux 4.1 as a dependency. This release shrinks our bundle size via error message extraction, updates several error messages for clarity, and optimizes our list of runtime dependencies. See PR #3536: Convert to TypeScript and the PRs that were merged into there for the bulk of the work.You can provide feedback in #4129: Evaluate current Redux TS port status to determine remaining work for a 5.0 release Changelog Please try this out and let us know how it works! We're especially interested in any TS types compatibility issues you might see. In theory, this should be almost identical in both runtime behavior and types to the recently released 4.1.2 build, but it's very likely that some of the changes may cause types issues. Given the recent updates to Reselect and Redux Thunk, where we successfully published new minor builds that contained conversions to TS and significant rewrites/improvements to the TS types, it's worth publishing the current conversion as an alpha to give the community a chance to report any compatibility issues. However, the TS-converted code in master has sat around since then, unused and unpublished, due to concerns about possible compatibility issues with the existing ecosystem (as well as general inertia on our part). The original effort was discussed in #3500: Port to TypeScript, and the work was integrated in PR #3536: Convert to TypeScript. In 2019, we began a community-powered conversion of the Redux codebase to TypeScript. This release contains the TypeScript codebase conversion work we did in 2019, to let users check compatibility and see if this is suitable for publishing. ⚠️ This is an experimental alpha release. Shameless plug: I'm working on a new company called Spaceship □ It's a tool to launch your code anywhere in one click.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |