always update costInfo on FilePage componentDidMount #1563
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#1563
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "overtaken-claim-price"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#797 @tzarebczan
Call
fetchCostInfo
whenever<FilePage>
mounts. AllfetchCostInfo
does is updatecostInfo
based onfileInfo
; there is no api call. So running it whenever a user visits a claim is not a problem where fetchingfileInfo
from the daemon could slow things down significantly.I don't like this solution but refactoring everything about
costInfo
would be more involved and there may be reasons for this design which are not apparent to me.Chesterson's Fence applies very much to programming :)
The reason for this code was in the original (and likely future) model, there may be an additional cost for data separate from the cost of the content itself.
This feature was turned off since data is free in 99.9+% of cases.
It's debatable whether it's worth retaining this since we expect data fees to return or to just remove it and re-add it when they do.
(@seanyesmunt can make that call)
I think this is ok for now. It fixes the bug and is a small enough change that it will be easy to change in the future. If there are any larger changes related to this, then we may want to go a different route. I will add a comment that links to this PR/discussion above this line.