Last active
October 31, 2018 04:15
-
-
Save rjcorwin/a221f4725aecc7e0e8d5b9a165715038 to your computer and use it in GitHub Desktop.
Idea of how a conceptual redux-dat would work...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore } from 'redux-dat' | |
import reducer from './reducer.js' | |
const myActions = new DatArchive() | |
const store = createStore(myActions, reducer) | |
store.addPeer('...') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would perhaps facilitate peer-to-peer lockstep consensus strategy described as being used in early Real Time Strategy games. However, I could see how the store could do some optimistic evaluating of state given a local action but this is still thorny if the result of state is nondeterministic.