MCPcopy Index your code
hub / github.com/caseywebdev/react-list / subscribeToStore

Function subscribeToStore

docs/index.js:7584–7588  ·  view source on GitHub ↗
(fiber, inst, subscribe)

Source from the content-addressed store, hash-verified

7582 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
7583}
7584function subscribeToStore(fiber, inst, subscribe) {
7585 return subscribe(function () {
7586 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
7587 });
7588}
7589function checkIfSnapshotChanged(inst) {
7590 var latestGetSnapshot = inst.getSnapshot;
7591 inst = inst.value;

Callers

nothing calls this directly

Calls 2

checkIfSnapshotChangedFunction · 0.85
forceStoreRerenderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…