kapouer/window-page

persistence between build and setup

Closed this issue · 5 comments

Currently only state.stage is persisted into data-page-stage.
Extend this so an application does not have to store data by itself.
For example state.persist and data-page, or in a specific script type="application/json" node.

Page.storage but let's use the simpler to setup Page.store(name, data)

Closed by 5fe355e

Stored data comes from GET requests and optionally some postprocessing.
It might be handy to have an option on GET requests to:

  1. post-process data
  2. cache post-processed data

However, storing data is not made for caching requests. Usually requests are done then merged then the data is no longer useful.

Use sessionStorage api - no this seems to be unrelated.

Not a good idea...