You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that our data model (`src/contact.js`) has a clientside cache, so navigating to the same contact is fast the second time. This behavior is _not_ React Router, it will re-load data for changing routes no matter if you've been there before or not. It does, however, avoid calling the loaders for _unchanging_ routes (like the list) during a navigation.
1092
+
1089
1093
## Deleting Records
1090
1094
1091
1095
If we review code in the contact route, we can find the delete button looks like this:
@@ -1372,7 +1376,7 @@ Let's use client side routing to submit this form and filter the list in our exi
1372
1376
1373
1377
👉 **Filter the list if there are URLSearchParams**
1374
1378
1375
-
```jsx filename=src/routes/root.jsx lines=[2-4]
1379
+
```jsx filename=src/routes/root.jsx lines=[1,2-4]
1376
1380
exportasyncfunctionloader({ request }) {
1377
1381
consturl=newURL(request.url);
1378
1382
constq=url.searchParams.get("q");
@@ -1734,7 +1738,7 @@ Pretty simple. Pull the form data off the request and send it to the data model.
0 commit comments