Skip to content

Instantly share code, notes, and snippets.

@jbyttow
Created August 24, 2018 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbyttow/7b7cd1f5c83ce2b78fc44db569c2e387 to your computer and use it in GitHub Desktop.
Save jbyttow/7b7cd1f5c83ce2b78fc44db569c2e387 to your computer and use it in GitHub Desktop.
Nion Normalized State Tree Example
nion: {
entities: {
user: {
'3803025': {
attributes: {...},
relationships: {},
}
}
},
references: {
currentUser: {
entities: [{
type: 'user',
id: '3803025'
}],
isCollection: false,
},
requests: {
currentUser: {
fetchedAt: 1480617638990,
isError: false,
errors: [],
isLoaded: true,
isLoading: false,
status: 'success',
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment