packages/brookjs-cli/templates/project/new/dir-deltas-index.js.ejs
---
to: "<%= name %>/<%= dir %>/deltas/index.<%= locals.typescript ? 'tsx' : 'js' %>"
---
import Kefir from 'kefir';
import { sampleByAction } from 'brookjs';
import { init } from '../actions';
export const rootDelta = (action$, state$) => {
const init$ = state$.thru(sampleByAction(action$, init)).flatMap(() => {
console.log('App initialized');
return Kefir.never();
});
return Kefir.merge([init$]);
};