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

Remove file saving functionality from Robinhood #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wassgha
Copy link

@wassgha wassgha commented Dec 31, 2020

Changes

  • Removes the functionality to save/load serialized user profiles from the Robinhood broker (see rationale)
  • Updates the README instructions to reflect the changes
  • Adds a default device token

Rationale:

  • Current implementation breaks the serialized loading/saving since the load and save methods are static but use this.doNotSaveToDisk which is not available in a static setting
  • Saving (whether to a database, file or otherwise) should be handled by the implementer not the library
  • The implementation depends on fs which breaks this library's compatibility with react-native/expo

Rationale:
- Current implementation breaks the serialized loading/saving since the `load` and `save` methods are static but use `this.doNotSaveToDisk` which is not available in a static setting
- Saving (whether to a database, file or otherwise) should be handled by the implementer not the library
- The implementation depends on `fs` which breaks this library's compatibility with `react-native`/`expo`
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.

None yet

1 participant