File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -105,3 +105,27 @@ export const queryClient = new QueryClient({
105105 },
106106});
107107```
108+
109+ ## Data flow
110+
111+ ### getItem
112+
113+ ``` mermaid
114+ flowchart TD
115+ Application([Client app]) --> |"Get item"| IDBCache[[IDBCache]]
116+ IDBCache --> |Get chunks| IndexedDB[(IndexedDB)]
117+ IndexedDB -.-> |Encrypted chunks| IDBCache
118+ IDBCache -.-> |Encrypted chunks| WebWorker{{Web Worker}}
119+ WebWorker -.-> |Decrypted chunks| IDBCache
120+ IDBCache --> |"Item"| Application
121+ ```
122+
123+ ### setItem
124+
125+ ``` mermaid
126+ flowchart TD
127+ Application([Client app]) --> |"Set item"| IDBCache[[IDBCache]]
128+ IDBCache -.-> |"Unencrypted chunks"| WebWorker{{Web Worker}}
129+ WebWorker -.-> |"Encrypted chunks"| IDBCache
130+ IDBCache -.-> |"Encrypted chunks"| IndexedDB[(IndexedDB)]
131+ ```
You can’t perform that action at this time.
0 commit comments