-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
Micah Jaffe edited this page Dec 9, 2018
·
8 revisions
{
entities: {
notebooks: {
90: {
id: 90,
name: "Important Plans",
userId: 5,
noteIds: [1],
}
},
notes: {
1: {
id: 1,
title: "Attack at dawn",
body: "One if by land, two if by sea"
notebookId: 90,
}
},
noteTags: {
101: {
id: 101,
noteId: 1,
tagId: 20
}
},
tags: {
20: {
id: 20,
name: "IMPORTANT",
}
}
},
ui: {
loading: true/false
theme: dark/light (bonus)
modal: null/deleteNote/encryptNote (bonus)
fullscreen: true/false
selectedNoteId: 5/null
},
errors: {
login: ["Invalid credentials"]
},
session: {
currentUserId: {
id: 5,
username: "noteman",
email: "[email protected]",
notebookIds: [1, 2]
}
}
}