feat(ui): remove keepUnusedDataFor for dynamic prompts

This query can have potentially large responses. Keeping them around for 24 hours essentially a hardcoded memory leak. Use the default for RTKQ of 60 seconds.
This commit is contained in:
psychedelicious
2025-04-16 15:43:04 +10:00
parent 36066c5f26
commit 44e44602d3

View File

@@ -21,7 +21,6 @@ export const utilitiesApi = api.injectEndpoints({
body: arg,
method: 'POST',
}),
keepUnusedDataFor: 86400, // 24 hours
// We need to fetch this on reconnect bc the user may have changed the text field while
// disconnected.
providesTags: ['FetchOnReconnect'],