[WIP] lbryio internal API calls and rewards component #1
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbryinc#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "initial-module"
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?
Two comments, not sure about the window one. That might not be needed.
Might as well export the redux stuff too.
Do you need to check that
windowis an object so it doesn't break android?Comments
This should probably be
AUTHENTICATION_START,AUTHENTICATION_SUCCESS, andAUTHENTICATION_FAIL. (AUTH_XXXwould also be acceptable).171ea2b97b/src/renderer/constants/action_types.js (L2)Isn't this more like
doAuthenticationthendoNewInstallation?Guessing you just haven't gotten to it, but worth porting this too
171ea2b97b/src/renderer/redux/actions/user.js (L39)@seanyesmunt @akinwale if
windowisn't safe to use on Android then I'd propose the convention that it's unacceptable to use it in all shared JS code and instead must be passed in as a dependency. Littering code withwindow && window.foo()will hurt maintainability, readability, and introduce additional sources of error.To be clear, I'm not suggesting passing in
window, specifically, but instead a generic term (such asstoreor whatever is appropriate) to be used in it's stead.Looks like
windowexists is actually already set toglobalReact Native (https://github.com/facebook/react-native/blob/master/Libraries/Core/InitializeCore.js#L34-L36), so I can remove this.@kauffj @seanyesmunt Pushed a new commit which includes the rewards actions/reducers/selectors, user reducers and selectors and a subset of user actions.
Looks good to me, I'll wait for @seanyesmunt's input on this