RaspberrypiOS now matches location of serve on Debian 12.

This commit is contained in:
Roland 2023-11-22 10:47:10 -07:00
parent 00579759cc
commit a491ea7677
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
6 changed files with 6 additions and 21 deletions

View file

@ -67,9 +67,11 @@ export const useLatestRequest = (delay = 300) => {
// A hook which ignores older requests and will only set `data` to the latest response's data.
// usage: sendRequest(async () => await yourAPICall(...args));
// The results from awaiting `fetchFunction`.
const [data, setData] = React.useState(null);
const latestRequestRef = React.useRef(0);
const debounceTimerRef = React.useRef(null);
// Loading while awaiting.
const [loading, setLoading] = React.useState(false);
const sendRequest = React.useCallback((fetchFunction) => {