Skip to content

Commit

Permalink
Fix transposition typo in changes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeanes authored and heckj committed Nov 10, 2023
1 parent 039b9a8 commit 46f9186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/under-the-hood/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can see that there is a key which looks roughly like our document URL (it do

If you're not familiar with IndexedDB this might be a little confusing. IndexedDB is a sort of key/value store where the keys are arrays. So what we are seeing here is a binary array (the `binary: Object` part in the above screenshot) stored under the key `["3RFyJzsLsZ7MsbG98rcuZ4FqtGW7", "incremental", "0290cdc2dcebc1ecb3115c3635bf1cb0f857ce971d9aab1c44a0d3ab19a88cd8"]`.

Okay, so creating a document (which is what happens when we load the page) stores a binary array under some key in the object database. This binary array is a single "incremental" change. An incremental change is not the entire history of the document but just some set of chagnes to the document. In this case it's the change that initializes the document with a `"counter"` field.
Okay, so creating a document (which is what happens when we load the page) stores a binary array under some key in the object database. This binary array is a single "incremental" change. An incremental change is not the entire history of the document but just some set of changes to the document. In this case it's the change that initializes the document with a `"counter"` field.

Now click the "count" button and take another look at the IndexedDB.

Expand Down

0 comments on commit 46f9186

Please sign in to comment.