Skip to content

Storage

James Butler edited this page Sep 30, 2022 · 2 revisions

This page shows how the database is accessed and how the documents are structured. It can also contain how we will handle state management/local storage

Local storage and state management

When the documents and groups are queried from the document manager service, they are stored in singletons. These singletons contain two arrays each. One to hold all of the retrieved objects, and one to control which to display. This allows for quick rendering of filtered or sorted views of the retrieved objects, as well as fast, dynamic updates. This however does not allow for persistent storage, and so the redux and redux-persist libraries are used to store the documents that a user downloads as well as an object containing the users details, allowing for offline functionality.

Clone this wiki locally