Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Redux and related packages #1556

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Conversation

JacobArrow
Copy link
Contributor

@JacobArrow JacobArrow commented Nov 20, 2024

Link to issue

  • Upgrade Redux and related packages to newest version

@JacobArrow JacobArrow changed the title Upgrade Redux and related packages to newest version Upgrade Redux and related packages Nov 21, 2024
@JacobArrow JacobArrow marked this pull request as ready for review November 21, 2024 14:53
Copy link
Contributor

@kasperg kasperg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

I have one thing for you to consider before you merge.

Based on the bundle size info it is nice to see us shaving off a (tiny) bit of weight.

src/core/utils/reduxMiddleware/extractServiceBaseUrls.ts Outdated Show resolved Hide resolved
@kasperg kasperg assigned JacobArrow and unassigned kasperg and kasperbirch1 Nov 22, 2024
Redux Toolkit v2 the action type changed from `any` to unknown, to encourage users to write type guards that checks the action object. The `action` object in `extractServiceBaseUrls()` was not originally written with types in mind, so we will keep it as `any` for now.
But it would be nice to introduce some type for this in the future.
To tighten the type safety for ´extractServiceBaseUrls´ we validate the incoming action against a type guard
@JacobArrow JacobArrow merged commit 92fec11 into develop Nov 25, 2024
20 checks passed
@JacobArrow JacobArrow deleted the DDFBRA-212-upgrade-redux branch November 25, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants