Store nav results in a promise to allow reuse #15

Closed
opened 2021-04-18 13:59:40 +02:00 by FWDekker · 0 comments
Owner

The header retrieves the nav data from the API. On /Tools, these data are separately fetched, causing an unnecessary request. The nav data should be stored as a promise in, say, navCache so that other pages can reuse it if they called nav first. Note that the cache should contain the raw JSON, no unpacked or formatted data.

The header retrieves the `nav` data from the API. On `/Tools`, these data are separately fetched, causing an unnecessary request. The `nav` data should be stored as a promise in, say, `navCache` so that other pages can reuse it if they called `nav` first. Note that the cache should contain the raw JSON, no unpacked or formatted data.
FWDekker added the
feature
label 2021-04-18 13:59:40 +02:00
FWDekker self-assigned this 2021-04-18 13:59:40 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fwdekker.com/template#15
No description provided.