sample state - adammoftah/Stack-Overwhelm GitHub Wiki

{
    entities: {
        questions: {
            1: {
                id: 1,
                body: "What is the motivation behind using Redux to manage state as opposed to React?",
                authorId: 7,
            },
            2: {
                id: 2,
                body: "Where do I put my semi-colons? Where have semi-colons put me?",
                authorId: 12,
            },
            3: {
                id: 3,
                body: "How do I inherit from a class in Ruby? Both in my code and in real life.",
                authorId: 12,
            },
            7: {
                id: 7,
                body: "Is transitioning into the tech industry after over a successful twenty year acting career realistic?",
                authorId: 6,
            },
        },
        answers: {
            15: {
                id: 15,
                body: "React allows us to hold a single source of truth in our state management protocols.",
                authorId: 12,
                questionId: 1,
                vote_total: 3,
            },
            24: {
                id: 24,
                body: "At the end of blocks in Javascript. At the end of the last previous part of your life.",
                authorId: 6,
                questionId: 2,
                vote_total: -2,
            },
            33: {
                id: 33,
                body: "Super. Super. Super. Less than sign; bluetooth.",
                authorId: 12,
                questionId: 3,
                vote_total: 0,
            },
        },
        favorites: {
            17: {
                userId: 6,
                questionId: 3,
            },
            19: {
                userId: 7,
                questionId: 7,
            },
            25: {
                userId: 6,
                questionId: 7,
            },
        },
        users: {
            6: {
                id: 6,
                displayName: "willsmith_official",
                email: "[email protected]",
                askedQuestions: [7],
                7: {
                    id: 7,
                    displayName: "flying_bearcat",
                    email: "[email protected]",
                    askedQuestions: [1],
                },
                12: {
                    id: 12,
                    displayName: "passion_penguin",
                    email: "[email protected]",
                    askedQuestions: [2, 3],
                }
            },
        },
        ui: {
        },
        errors: {
            login: ["The email is not a valid email address.", "The email or password is incorrect."],
            signup: ["Must contain at least 8 characters.", "Email is invalid."],
            questionForm: ["Body is missing.", "Body must be at least 30 characters; you entered 4.", "Title must be at least 15 characters.",]
        },
        session: { currentUserId: 6 }
    }
}