rt2zz / redux-persist-crosstab

Keep redux browser tab state in sync
85 stars 27 forks source link

Crosstab action flag #12

Open hstom opened 7 years ago

hstom commented 7 years ago

in this blob of code

  var statePartial = {}

  statePartial[keyspace] = e.newValue

  persistor.rehydrate(statePartial, {serial: true})

it would be nice if there could be configured a flag or blob to be added to the statePartial so that cross tab rehydrates could be differentiated from page load rehydrates i.e.

if(showFlag){ statePartial._CROSSTAB_REHYDRATE_ = true }

or something like that