Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: display sent and received txs in a single table #1167
fix: display sent and received txs in a single table #1167
Changes from 17 commits
10bcf63
c83002e
505e444
4adabd9
1a20798
ff7382a
f20bbe1
e840d6c
5e48957
47e3bc1
f825dfd
e0b9240
413931b
35fc325
17d26e3
54ae273
1638fc5
bad1695
40c13ee
86a25d4
241706d
c637e43
e4de9e7
d97d2a3
6dfcedb
9cd8b14
075d571
4a17adb
b1190f5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the other deps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We haven't had them before but I will have a look.
Maybe @dewanshparashar can have a look as well as I don't believe I've made any changes here before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In dependencies,
locallyStoredTransactions
since this state object mutates very frequently andlocalTransactionsKey (string)
is derived from it to keep things under control.pageNumber
andsearchString
can be added, but we only need this memo function to run for the very first page so adding these doesn't make a difference to the logic / result. Just that it will recalculate and do an early return for each update. It's optional.If we go ahead with it, I'd suggest a different PR to isolate it's impact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we should either memo it, or not having it as a dependencies, otherwise it make things unpredictable
If they are part of the callback of useEffect, then they should be included, even if they never change