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

Chi 1434 move redux constants #1729

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Conversation

stephenhand
Copy link
Collaborator

#Do not review until #1728 is merged

Description

This PR moves the constants we use for the various redux namespaces into their own file

Them being defined in the same file as the root state was causing circular dependency headaches, because every time you used any of these constants, you have to pull in the whole state handling code hierarchy

Now these constants can be used in isolation.

We should probably start deprecating the use of these in favour of using the correct types now we are in TS land, but this solves the immediate issue.

There aren't really any 'real' changes here, aside from a little bit of tidying the edits are all related to moving those constants

Checklist

  • Corresponding issue has been opened
  • New tests added
  • N/A Feature flags added
  • N/A Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Related Issues

Fixes #....

Verification steps

…tate to prevent as many dependency issues in tests
@stephenhand stephenhand marked this pull request as ready for review October 18, 2023 16:36
Copy link
Contributor

@murilovmachado murilovmachado left a comment

Choose a reason for hiding this comment

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

looks good!

@stephenhand stephenhand merged commit 92e3208 into master Oct 18, 2023
8 checks passed
@stephenhand stephenhand deleted the CHI-1434-move_redux_constants branch October 18, 2023 17:48
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.

2 participants