المقدمة 4 الغرض من دليل الترخيص وكيفية استخدامه 6
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 { useEffect, DependencyList } from "react"; | |
import { useDispatch, useSelector } from "react-redux"; | |
import { Action } from 'redux'; | |
import { IGlobalState } from "../../../redux/GlobalState"; | |
type Selector<T> = (state: IGlobalState) => T; | |
/** | |
* @param action The redux action object, pass null or undefined to prevent dispatch | |
* @param selector A selector function, it should return the state targeted by the 'action' argument |