Skip to content

refactor: paystring remove redux and payid-lib#649

Merged
ckniffen merged 8 commits intostagingfrom
refactor/paystring-react-query
Apr 4, 2023
Merged

refactor: paystring remove redux and payid-lib#649
ckniffen merged 8 commits intostagingfrom
refactor/paystring-react-query

Conversation

@ckniffen
Copy link
Copy Markdown
Collaborator

High Level Overview of Change

Switch from redux to react-query and payid-lib to @paystring/utils.

This eliminates ~200 lines.

This is a recreation of #639.

Type of Change

  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)

TypeScript/Hooks Update

  • Updated files to React Hooks
  • Updated files to TypeScript

Switch from redux to react-query and payid-lib to @paystring/utils.

This eliminates ~200 lines.
@ckniffen ckniffen requested review from JST5000 and pdp2121 March 31, 2023 17:57

it('renders static parts', () => {
const wrapper = creatWrapper()
const wrapper = createWrapper()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice catch :) (Took me a couple reads to see the difference)

addressDetailsType: string
addressDetails: {
address: string
tag: string // optional
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be written as tag?: string instead of this comment? or is the implication that it can be empty?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just confirmed the output from the server and it will be undefined.

Copy link
Copy Markdown
Contributor

@JST5000 JST5000 left a comment

Choose a reason for hiding this comment

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

LGTM after a small question

@ckniffen ckniffen merged commit b1e27bb into staging Apr 4, 2023
@ckniffen ckniffen deleted the refactor/paystring-react-query branch April 4, 2023 23:32
@mvadari mvadari mentioned this pull request May 20, 2024
1 task
achowdhry-ripple added a commit that referenced this pull request Apr 8, 2025
## High Level Overview of Change

This PR removes the last of redux from the codebase. The only two pieces
left were Account and Token.

It also removes all mentions of gravatars.

This also reduces the size of the build by about 35kb.

There were some build issues that required regenerating the
package-lock, which is almost all of the diff.

### Context of Change

* #649
* #640
* #635
* #634
* #1100

### Type of Change

- [x] Refactor (non-breaking change that only restructures code)

### TypeScript/Hooks Update

N/A

## Test Plan

Tests were fixed to handle the refactor.

---------

Co-authored-by: Ashray Chowdhry <achowdhry@ripple.com>
heap-coder added a commit to heap-coder/explorer that referenced this pull request Sep 27, 2025
## High Level Overview of Change

This PR removes the last of redux from the codebase. The only two pieces
left were Account and Token.

It also removes all mentions of gravatars.

This also reduces the size of the build by about 35kb.

There were some build issues that required regenerating the
package-lock, which is almost all of the diff.

### Context of Change

* ripple/explorer#649
* ripple/explorer#640
* ripple/explorer#635
* ripple/explorer#634
* ripple/explorer#1100

### Type of Change

- [x] Refactor (non-breaking change that only restructures code)

### TypeScript/Hooks Update

N/A

## Test Plan

Tests were fixed to handle the refactor.

---------

Co-authored-by: Ashray Chowdhry <achowdhry@ripple.com>
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