MCPcopy Index your code
hub / github.com/plotly/dash / setItem

Method setItem

dash/dash-renderer/src/persistence.js:125–138  ·  view source on GitHub ↗
(key, value, dispatch)

Source from the content-addressed store, hash-verified

123 * dispatch as a parameter, so it can report OOM to devtools
124 */
125 setItem(key, value, dispatch) {
126 try {
127 this._setItem(key, value);
128 } catch (e) {
129 dispatch(
130 err(
131 `${key} failed to save in ${this._name}. Persisted props may be lost.`
132 )
133 );
134 // TODO: at some point we may want to convert this to fall back
135 // on memory, pulling out all persistence keys and putting them
136 // in a MemStore that gets used from then onward.
137 }
138 }
139
140 removeItem(key) {
141 this._storage.removeItem(storePrefix + key);

Callers 13

async-mathjax.jsFile · 0.45
LFunction · 0.45
plotly.min.jsFile · 0.45
_setItemMethod · 0.45
recordUiEditFunction · 0.45
toggleCollapsedFunction · 0.45
requestDashVersionInfoFunction · 0.45
setDontShowAgainFunction · 0.45
setRemindMeLaterFunction · 0.45
setSkipThisVersionFunction · 0.45
fillStorageFunction · 0.45

Calls 2

_setItemMethod · 0.95
errFunction · 0.85

Tested by 1

fillStorageFunction · 0.36