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
Bunch Of Stinkin' Streams
WIP
// root/index export default sources => { const response$ = _authedResponse$(sources.auth$, sources.queue$) // contains all the user*$ and redirect*$ streams // this feels ugly as hell const userSources = _userSources(sources.auth$, sources.firebase) // OR: const { userProfileKey$, userProfile$, redirectOnLogin$, redirectOnLogout$, redirectOnUnconfirmed$ } = _userSources(sources.auth$, sources.firebase) const page$ = nestedComponent( sources.router.define(_routes), {...sources, ...userSources, response$} ) const queue$ = _authedTask$(sources.auth$, glean('queue$',page$)) const route$ = Observable.merge( glean('route$',page$), userSources.redirectUnconfirmed$ ) const sinks = glean('DOM', 'auth$', [page$]) return {queue$, route$, ...sinks} } // appframe export default sources => { const appBar = AppBar(sources) const sideNav = SideNav(sources) const children = [appBar,sideNav] const DOM = combineLatestObj({ appBarDOM: appBar.DOM, sideNavDOM: sideNav.DOM, headerDOM: sources.headerDOM, pageDOM: sources.pageDOM, }).map(_DOM) const sinks = glean('auth$','queue$','route$',children) return {DOM, ...sinks} }
The text was updated successfully, but these errors were encountered:
https://github.com/sdebaun/sparks-cyclejs/blob/refactor-appmenu/src/components/AppMenu/index.js
first attempt with this pattern at a lower-level component
Sorry, something went wrong.
I really like the way that the AppMenu looks using this pattern. It keeps functions small, simple and focused on a single problem.
No branches or pull requests
Bunch Of Stinkin' Streams
WIP
The text was updated successfully, but these errors were encountered: