Skip to content

Instantly share code, notes, and snippets.

@huwshimi
huwshimi / index.js
Created August 30, 2019 05:33
take() and useSelector()
import { applyMiddleware, createStore } from "redux";
import { composeWithDevTools } from "redux-devtools-extension";
import { delay, take } from "redux-saga/effects";
import { useDispatch, useSelector, Provider } from "react-redux";
import createSagaMiddleware from "redux-saga";
import React, { useEffect } from "react";
import ReactDOM from "react-dom";
const sagaMiddleware = createSagaMiddleware();
const composeEnhancers = composeWithDevTools({});