webapp/src/sagas.js
//       We can listen to URL changes and try to load web3 in that particular case
We can listen to URL changes and try to load web3 in that particular case
We can listen to URL changes and try to load web3 in that particular case
function* rootSaga() {
  yield takeLatest(types.connectWeb3.request, connectWeb3)
  yield takeLatest(types.connectWeb3.success, handleAddressFetchRequest)
  yield takeEvery(types.navigateTo, handleLocationChange)
  yield takeEvery(types.parcelRangeChanged, handleParcelRangeChange)
  yield takeLatest(types.fetchParcels.request, handleParcelFetchRequest)
  yield takeEvery(types.fetchParcels.failed, retryParcelFetch)
  yield takeLatest(types.fetchAddressState.request, handleAddressFetchRequest)
  yield takeEvery(types.fetchProjects.request, handleProjectsFetchRequest)
  yield takeEvery(types.appendUnconfirmedBid, handleAddressUpdateBalance)
  yield takeEvery(
    types.fetchOngoingAuctions.request,
    handleOngoingAuctionsFetchRequest
  )
  yield takeEvery(
    types.fetchAddressState.success,
    handleOngoingAuctionsFetchRequest
  )
  yield takeEvery(types.fetchDistricts.request, handleDistrictsFetchRequest)
  yield takeEvery(types.fastBid, handleFastBid)
  yield takeLatest(types.confirmBids.request, handleAddresStateStartLoading)
  yield takeLatest(types.confirmBids.request, handleConfirmBidsRequest)
  yield takeLatest(types.confirmBids.success, handleAddressFetchRequest)
  yield takeLatest(types.confirmBids.success, handleEmailRegisterBids)
  yield takeEvery(types.confirmBids.failed, handleOngoingAuctionsFetchRequest)
  yield takeLatest(types.confirmBids.failed, handleAddressFetchReload)
  yield takeLatest(types.confirmBids.failed, handleAddresStateFinishLoading)
  yield takeLatest(types.subscribeEmail.request, handleEmailSubscribe)
  yield takeLatest(types.unsubscribeEmail.request, handleEmailUnsubscribe)
  yield takeLatest(types.subscribeEmail.success, handleAddressFetchReload)
  yield takeLatest(types.fetchStats.request, handleStatsFetchRequest)
  yield takeLatest(
    types.fetchAddressStats.request,
    handleAddressStatsFetchRequest
  )
}
function * rootSaga ( ) { yield takeLatest ( types . connectWeb3 . request , connectWeb3 ) yield takeLatest ( types . connectWeb3 . success , handleAddressFetchRequest ) yield takeEvery ( types . navigateTo , handleLocationChange ) yield takeEvery ( types . parcelRangeChanged , handleParcelRangeChange ) yield takeLatest ( types . fetchParcels . request , handleParcelFetchRequest ) yield takeEvery ( types . fetchParcels . failed , retryParcelFetch ) yield takeLatest ( types . fetchAddressState . request , handleAddressFetchRequest ) yield takeEvery ( types . fetchProjects . request , handleProjectsFetchRequest ) yield takeEvery ( types . appendUnconfirmedBid , handleAddressUpdateBalance ) yield takeEvery ( types . fetchOngoingAuctions . request , handleOngoingAuctionsFetchRequest ) yield takeEvery ( types . fetchAddressState . success , handleOngoingAuctionsFetchRequest ) yield takeEvery ( types . fetchDistricts . request , handleDistrictsFetchRequest ) yield takeEvery ( types . fastBid , handleFastBid ) yield takeLatest ( types . confirmBids . request , handleAddresStateStartLoading ) yield takeLatest ( types . confirmBids . request , handleConfirmBidsRequest ) yield takeLatest ( types . confirmBids . success , handleAddressFetchRequest ) yield takeLatest ( types . confirmBids . success , handleEmailRegisterBids ) yield takeEvery ( types . confirmBids . failed , handleOngoingAuctionsFetchRequest ) yield takeLatest ( types . confirmBids . failed , handleAddressFetchReload ) yield takeLatest ( types . confirmBids . failed , handleAddresStateFinishLoading ) yield takeLatest ( types . subscribeEmail . request , handleEmailSubscribe ) yield takeLatest ( types . unsubscribeEmail . request , handleEmailUnsubscribe ) yield takeLatest ( types . subscribeEmail . success , handleAddressFetchReload ) yield takeLatest ( types . fetchStats . request , handleStatsFetchRequest ) yield takeLatest ( types . fetchAddressStats . request , handleAddressStatsFetchRequest ) }
We can listen to URL changes and try to load web3 in that particular case
We can listen to URL changes and try to load web3 in that particular case