MCPcopy Create free account
hub / github.com/caseywebdev/react-list / checkIfSnapshotChanged

Function checkIfSnapshotChanged

docs/index.js:7589–7598  ·  view source on GitHub ↗
(inst)

Source from the content-addressed store, hash-verified

7587 });
7588}
7589function checkIfSnapshotChanged(inst) {
7590 var latestGetSnapshot = inst.getSnapshot;
7591 inst = inst.value;
7592 try {
7593 var nextValue = latestGetSnapshot();
7594 return !objectIs(inst, nextValue);
7595 } catch (error) {
7596 return !0;
7597 }
7598}
7599function forceStoreRerender(fiber) {
7600 var root = enqueueConcurrentRenderForLane(fiber, 2);
7601 null !== root && scheduleUpdateOnFiber(root, fiber, 2);

Callers 2

updateStoreInstanceFunction · 0.85
subscribeToStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…