This file contains hidden or 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 { put, call, takeEvery } from 'redux-saga/effects' | |
import * as Actions from '@actions/Artsy' | |
export function* fetchData(client, artworkId) { | |
yield call(Actions.artsyFetchStart) | |
try { | |
const artwork = yield call(client.getData, { id: artworkId }) // this returns undefined | |
yield call(Actions.artsyFetchSuccess) |
OlderNewer