We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's not possible to use the addPrevState method with a cyclejs component which is only reading the state and which isn't returning onion sinks.
I think this method might be updated with something like this :
export function addPrevState(main : any, prevState : any) : any { return function(sources : any) : any { const initReducer = xs.of(() => prevState); const appSinks = main(sources); return { ...appSinks, onion: xs.merge(initReducer, appSinks.onion || xs.empty()) }; }; }
Or we might create another method to test readonly component ?
what do you think about this , I can make a PR, if you need ?
The text was updated successfully, but these errors were encountered:
yeah, look good, please make a PR. But I would use xs.never()
xs.never()
Sorry, something went wrong.
Published in 1.5.2
No branches or pull requests
It's not possible to use the addPrevState method with a cyclejs component which is only reading the state and which isn't returning onion sinks.
I think this method might be updated with something like this :
Or we might create another method to test readonly component ?
what do you think about this , I can make a PR, if you need ?
The text was updated successfully, but these errors were encountered: