Hatch *LocalItem API should generally be avoided
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Evergreen 2.11
There are many uses of egCore.
LocalItem calls force data to live in the browser's localStorage, bypassing the Hatch configuration. The only keys that have to be stored in localStorage are the Hatch keys themselves, eg.hatch.*.
This does not affect sessionStorage items or cookies.
Files that use *LocalItem calls that probably should not, as of today.
cat/bucket/
cat/catalog/app.js
cat/item/app.js
cat/services/
cat/z3950/app.js
circ/services/
services/grid.js
services/navbar.js
services/ui.js
Note that hatch.getLocalI
One thing to consider is data shared with embedded Dojo interfaces. These UIs have access to the browser's local/session storage, but not to Hatch. In those cases, for now anyway, we have to use the *LocalItem APIs.