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

[SPIKE] document the final State Object #14

Open
opanitch opened this issue Jun 24, 2019 · 1 comment
Open

[SPIKE] document the final State Object #14

opanitch opened this issue Jun 24, 2019 · 1 comment
Assignees

Comments

@opanitch
Copy link
Owner

opanitch commented Jun 24, 2019

In Redux, all the application state is stored as a single object. It's a good idea to think of its shape before writing any code. What's the minimal representation of your app's state as an object?

@opanitch opanitch self-assigned this Jun 24, 2019
@opanitch
Copy link
Owner Author

opanitch commented Jun 24, 2019

Idea:

{
  requestList: {array} [{
    id: {number} (hash?),
    requestTitle: {string} 'Example Movie/TV Show Title',
    requestUser: {string} '[email protected]'
  }, {
    id: {number} (hash?),
    requestTitle: {string} 'Example Movie/TV Show Title 2',
    requestUser: {string} '[email protected]'
  }, ...],
  plex: {
    userList: {array} [list, of, users],
    lastUpdated: {date} DateTime,
    libraryMetadata: [{
      added: {date} DateTime,
      id: {number} (hash?),
      link: {string} 'URL to plex item',
      title: {string} 'Movie/TV Show Title',
      year: {date} DateTime
    }, {
      added: {date} DateTime,
      id: {number} (hash?),
      link: {string} 'URL to plex item',
      title: {string} 'Movie/TV Show Title',
      year: {date} DateTime
    }, ...]
  }
}

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

No branches or pull requests

1 participant