Created
May 2, 2018 01:51
-
-
Save jamesplease/94beb1ad7f2b42b4357c8fbc6611f9ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Originally, it was like this | |
{ | |
resources: { | |
books: { | |
// This shit is secret, and should not be exposed to the users. | |
__internalInfoAboutBooks: {}, | |
resources: { | |
24: { ... }, | |
50: { ... } | |
} | |
} | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Now, the metadata is stored in a separate object that is never exposed to the user | |
{ | |
resources: { | |
books: { | |
24: { ... }, | |
50: { ... } | |
} | |
} | |
} | |
// here is that separate object... | |
{ | |
resources: { | |
books: { | |
__internalInfoAboutBooks: {} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment