Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state = {
- threads:{
- '1':{
- id: '1',
- name: 'code',
- isActive: true,
- tweets: ['1', '2', '3']
- },
- '2':{
- id: '2',
- name: 'sport',
- isActive: false,
- tweets: ['4', '5', '6']
- }
- },
- tweets: {
- byId: {
- '1': {
- id: '1',
- title: '...',
- description: '...',
- isEditable: false,
- authorId: '...',
- comments: ['1', '3', '4', '7']
- },
- '2': {
- id: '2',
- title: '...',
- description: '...',
- isEditable: false,
- authorId: '...',
- comments:['2','6']
- },
- '3': {
- id: '3',
- title: '...',
- description: '...',
- isEditable: false,
- authorId: '...',
- comments: ['5','8','9','10']
- }, ...
- },
- allIds: ['1', '2', '3', ...]
- },
- comments: {
- byId: {
- '1': {
- id: '1',
- description: '...',
- isEditable: false,
- authorId: '...',
- tweetId:'1',
- },
- '2': {
- id: '2',
- description: '...',
- isEditable: false,
- authorId: '...',
- tweetId:'2',
- },
- '3': {
- id: '1',
- description: '...',
- isEditable: false,
- authorId: '...',
- tweetId:'1',
- }, ...
- },
- allIds:['1', '2', '3', '4', '5', ...]
- }
- }
Add Comment
Please, Sign In to add comment