staydecent / atom

Shared, synchronous, independent state for JavaScript apps.
ISC License
7 stars 1 forks source link

Allow passing meta with `setState` #17

Closed staydecent closed 4 years ago

staydecent commented 4 years ago
    function setState (newState, meta) {
      dispatch({type: '__ATOM_SET_STATE__', payload: newState, meta})
    }