upd: division
Deskripsi: - update refresh data global state list divisi NoIssues
This commit is contained in:
@@ -37,6 +37,7 @@ export default function ListDivision() {
|
|||||||
const [search, setSearch] = useState("");
|
const [search, setSearch] = useState("");
|
||||||
const [nameGroup, setNameGroup] = useState("");
|
const [nameGroup, setNameGroup] = useState("");
|
||||||
const [data, setData] = useState<Props[]>([]);
|
const [data, setData] = useState<Props[]>([]);
|
||||||
|
const update = useSelector((state: any) => state.divisionUpdate)
|
||||||
|
|
||||||
async function handleLoad() {
|
async function handleLoad() {
|
||||||
try {
|
try {
|
||||||
@@ -60,7 +61,7 @@ export default function ListDivision() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
handleLoad();
|
handleLoad();
|
||||||
}, [active, search, group, cat]);
|
}, [active, search, group, cat, update]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SafeAreaView>
|
<SafeAreaView>
|
||||||
|
|||||||
Reference in New Issue
Block a user