Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I handle the situation that the storageRequest value depending on previous state #20

Open
lujiajing1126 opened this issue Aug 9, 2016 · 0 comments

Comments

@lujiajing1126
Copy link

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 i can get the current state by

const storageRequest$ = xs.combine(newScreen$.startWith(null),deleteScreen$.startWith(null)).map(([newOne,delOne]) => {
    return state$.map(row => { // where to create a request }
}

but state$ is depend on the storage input stream conversely, so there's circular dependenies

How can i solve this problem ( maybe it' s a flaw of my design pattern )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant