storage
storage copied to clipboard
A Cycle.js Driver for using localStorage and sessionStorage.
When working with localStore may be helpfull to know and process values saved by other windows/tabs. See here https://stackoverflow.com/questions/28230845/communication-between-tabs-or-windows
Minimal project to reproduce: https://gist.github.com/ornicar/fc1d6a4b08bee7c8bcd64ffee55797e1 It won't compile with TypeScript. The `storageDriver` expected type is `Driver`, but instead it has the type `(request$: Stream) => ResponseCollection`. And therefore it won't...
The readme has a link to an example, it doesn't work: https://jsbin.com/xumuqi/15/edit?html,js,console,output > "ReferenceError: CycleDOM is not defined > at xumuqi.js:3:17"
Demo in readme isn't working http://jsbin.com/xumuqi/15/edit?html,js,console,output ```javascript TypeError: request$.addListener is not a function at Object.storageDriver [as storage] (https://rawgit.com/kahlil/cycle-storage-driver/master/dist/cycle-storage-driver.js:1975:12) at callDrivers (https://rawgit.com/cyclejs/cycle-core/v5.0.1/dist/cycle.js:21:42) at Object.run (https://rawgit.com/cyclejs/cycle-core/v5.0.1/dist/cycle.js:106:19) at xumuqi.js:31:7 ```
In redux, we can get the current state in reducer how can i get the current state in cycle.js app with storage where i store the state of app now...
Wouldn't it be better to split two targets onto two different drivers? 1. I don't think that amount of `if` checks (we have now in the code) is better than...