Skip to content

Storing data in localstorage to reduce api calls. #17

Description

@mrbusysky

Store user information in localstorage on login:

  • User details
    • Wallet Address - Completed
      • Needed to have a wallet sign the vote.
    • Coin Balance
      • Calculating vote weight

Example: key:userdetails, value:{"wallet":"walletadress","balance":"number"}

Store poll information localstorage:

  • All polls
    • Onload of polls page check if a new poll has been made.
    • Also should do a status check for polls to update data this way the UI can reflect the votes that are done.

Example: key:polls, value:{array of polls}

  • Users votes
    • Used to show in the UI if the users have voted on a poll.
    • Onload of the polls page, it should also make a list of all votes the user has made.

Example: key:votes, value:{array of votes}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions