From daee56ba5509a4576fa066adfcc0d1bc05f98802 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= <adrian.oliva@cimat.mx>
Date: Mon, 29 May 2023 18:28:55 -0600
Subject: Adding new to dos is now synchronized with database.

Changed the `refreshToDos` to also refresh the last index used.
---
 src/App.jsx | 10 ----------
 1 file changed, 10 deletions(-)

(limited to 'src/App.jsx')

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>
-- 
cgit v1.2.3

