This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xs from 'xstream' | |
import { combineCycles } from 'redux-cycle-middleware' | |
import { push } from 'react-router-redux' | |
import { API_URL } from '../constants/api' | |
// ACTION TYPES (Format: app-name/reducer/ACTION_TYPE) | |
// ======================================================= | |
const LOGIN = 'app-name/auth/LOGIN' | |
const LOGIN_SUCCESS = 'app-name/auth/LOGIN_SUCCESS' | |
const LOGIN_FAIL = 'app-name/auth/LOGIN_FAIL' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function *main() { | |
const confirmRequest = { | |
type: 'confirm', | |
value: 'Are you sure?', | |
}; | |
const confirmResponse = yield confirmRequest; | |
if (confirmResponse === true) { | |
const consoleRequest = { | |
type: 'console', |