MCPcopy
hub / github.com/clientIO/joint / destroy

Function destroy

packages/joint-react/src/data/create-store.ts:197–203  ·  view source on GitHub ↗

* Cleanup the store.

()

Source from the content-addressed store, hash-verified

195 * Cleanup the store.
196 */
197 function destroy() {
198 unsubscribe();
199 graph.off('batch:stop', onBatchStop);
200 graph.clear();
201 data.destroy();
202 measuredNodes.clear();
203 }
204 // Force update the graph to ensure it's in sync with the store.
205 forceUpdate();
206

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected