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

Function updateStoreInstance

docs/index.js:7579–7583  ·  view source on GitHub ↗
(fiber, inst, nextSnapshot, getSnapshot)

Source from the content-addressed store, hash-verified

7577 : renderedSnapshot.push(fiber));
7578}
7579function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
7580 inst.value = nextSnapshot;
7581 inst.getSnapshot = getSnapshot;
7582 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
7583}
7584function subscribeToStore(fiber, inst, subscribe) {
7585 return subscribe(function () {
7586 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);

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…