MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / setComponentValue

Function setComponentValue

tensorboard/components/tf_storage/storage.ts:167–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 // function does not re-assign needlessly, to avoid Polymer observer
166 // churn.
167 const setComponentValue = () => {
168 const storedValue = get(uriStorageName, fullOptions);
169 const currentValue = this[fullOptions.polymerProperty];
170 if (!_.isEqual(storedValue, currentValue)) {
171 this[fullOptions.polymerProperty] = storedValue;
172 }
173 };
174 const addListener = fullOptions.useLocalStorage
175 ? addStorageListener
176 : addHashListener;

Callers 1

getInitializerFunction · 0.85

Calls 1

getFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…