diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-29 18:28:55 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-29 18:28:55 -0600 |
commit | daee56ba5509a4576fa066adfcc0d1bc05f98802 (patch) | |
tree | 0c0fd7ebb94ca5c4ad82dbea16ba2b58e91900a2 /src/App.jsx | |
parent | 4285674ab37c74a24b265ace4d15d4848457d375 (diff) | |
download | ToDo-App-FE-daee56ba5509a4576fa066adfcc0d1bc05f98802.tar.gz ToDo-App-FE-daee56ba5509a4576fa066adfcc0d1bc05f98802.zip |
Adding new to dos is now synchronized with database.
Changed the `refreshToDos` to also refresh the last index used.
Diffstat (limited to '')
-rw-r--r-- | src/App.jsx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/App.jsx b/src/App.jsx index 87aa833..9ef710e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -5,7 +5,6 @@ import { ListToDos } from "./ToDo-UI/ListToDo"; import { useDispatch, useSelector } from "react-redux"; import { - set_last_id, select_current_filters, select_current_sorting, select_current_page, @@ -22,15 +21,6 @@ function App() { const my_curr_page = useSelector(select_current_page); refresh_todos(my_filters, my_sorters, my_curr_page, dispatch); - // Finally, retrieve the last index used for a to do. - const last_id_api = get_last_id_function(); - last_id_api((response) => { - dispatch( - set_last_id({ - id: response, - }) - ); - }); return ( <div> |