src/statorgfc.js
function() {
    const changed_keys = store._changed_keys
    if (changed_keys.length === 0) {
      console.error('no keys were changed, yet we are trying to publish a store change')
      return
    }

    // make sure _changed_keys is reset before executing callbacks
    // (if callbacks modify state, the list of keys the callback changed would be wiped out)
    store._changed_keys = []
    store._clearDebounceTimeout()
    store._callback_objs.forEach(obj => obj.callback(changed_keys))
  }
function() {
    const changed_keys = store._changed_keys
    if (changed_keys.length === 0) {
      console.error('no keys were changed, yet we are trying to publish a store change')
      return
    }

    // make sure _changed_keys is reset before executing callbacks
    // (if callbacks modify state, the list of keys the callback changed would be wiped out)
    store._changed_keys = []
    store._clearDebounceTimeout()
    store._callback_objs.forEach(obj => obj.callback(changed_keys))
  }
function ( ) { const changed_keys = store . _changed_keys if ( changed_keys . length === 0 ) { console . error ( 'no keys were changed, yet we are trying to publish a store change' ) return } // make sure _changed_keys is reset before executing callbacks // (if callbacks modify state, the list of keys the callback changed would be wiped out) store . _changed_keys = [ ] store . _clearDebounceTimeout ( ) store . _callback_objs . forEach ( obj => obj . callback ( changed_keys ) ) }
Run subscribers' callback functions. An array of the changed keys is passed to the callback function.
Be careful how often this is called, since re-rendering components can become expensive.
Run subscribers callback functions . An array of the changed keys is passed to the callback function . Be careful how often this is called since re - rendering components can become expensive .