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

Function getObserver

tensorboard/components/tf_storage/storage.ts:194–206  ·  view source on GitHub ↗
(key: string, options: StorageOptions<T>)

Source from the content-addressed store, hash-verified

192 storageListeners.forEach((key) => removeStorageListenerByKey(key));
193 }
194 function getObserver(key: string, options: StorageOptions<T>): Function {
195 const fullOptions = {
196 defaultValue: options.defaultValue,
197 polymerProperty: key,
198 useLocalStorage: false,
199 ...options,
200 };
201 return function () {
202 const uriStorageName = getURIStorageName(this, key);
203 const newVal = this[fullOptions.polymerProperty];
204 set(uriStorageName, newVal, fullOptions);
205 };
206 }
207 return {get, set, getInitializer, getObserver, disposeBinding};
208}
209export function migrateLegacyURLScheme() {

Callers

nothing calls this directly

Calls 2

getURIStorageNameFunction · 0.85
setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…