feat: add keepPreviousData option to useGet in IncidentModal
This commit is contained in:
1 parent
40a9f3f1e1
commit
99c62961cf
1 file changed
+1
-1
@@ -34,7 +34,7 @@ export const IncidentModal = ({
|
||||
const { data, isLoading, error } = useGet<{ incidents: Incident[] }>(
|
||||
open ? `/status-page/${url}/incidents/${monitorId}?date=${date}` : null,
|
||||
{},
|
||||
{ revalidateOnFocus: false }
|
||||
{ revalidateOnFocus: false, keepPreviousData: true }
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user