Storage API
Overview
Fast, temporary storage for data exchange in code interactions.
This storage provides a quick way to exchange data between components, modules, events, or other parts of the code.
Data remains accessible across page transitions without a reload.
However, it is cleared when the page is refreshed, the browser tab is closed, or the browser itself is shut down.
Ideal for short-lived data that doesn't need to persist beyond the current session or navigation flow.
For retaining data longer, consider using cookies, localStorage, or sessionStorage, which provide persistent storage options beyond a single page session.
This storage provides a quick way to exchange data between components, modules, events, or other parts of the code.
Data remains accessible across page transitions without a reload.
However, it is cleared when the page is refreshed, the browser tab is closed, or the browser itself is shut down.
Ideal for short-lived data that doesn't need to persist beyond the current session or navigation flow.
For retaining data longer, consider using cookies, localStorage, or sessionStorage, which provide persistent storage options beyond a single page session.