nl_tokens: Creates a new state with the data for a source changed to the contents of data .
pl_tokens: function changeData ( state , sourceName , data ) { const source = state . sources [ sourceName ] ; if ( ! source ) { return state ; } const src_mixin = { } ; // update the individual source. src_mixin [ sourceName ] = Object . assign ( { } , source , { data , } ) ; // kick back the new state. return Object . assign ( { } , state , { sources : Object . assign ( { } , state . sources , src_mixin ) , } , incrementVersion ( state . <mask> , dataVersionKey ( sourceName ) ) ) ; }