MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / persistQueue

Method persistQueue

packages/sdks/react-native/index.ts:118–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117
118 private persistQueue() {
119 if (!this.storage) {
120 return;
121 }
122 this.storage
123 .setItem(QUEUE_STORAGE_KEY, JSON.stringify(this.queue))
124 .catch(() => {
125 this.log('Failed to persist queue');
126 });
127 }
128
129 addQueue(payload: TrackHandlerPayload) {
130 super.addQueue(payload);

Callers 2

addQueueMethod · 0.95
flushMethod · 0.95

Calls 4

logMethod · 0.95
setItemMethod · 0.80
catchMethod · 0.45
stringifyMethod · 0.45

Tested by

no test coverage detected