(user?: LoggedUser)
| 24 | ][]; |
| 25 | |
| 26 | const getReadingHistoryKey = (user?: LoggedUser) => |
| 27 | generateQueryKey(RequestKey.ReadingHistory, user); |
| 28 | |
| 29 | const restoreSnapshot = (client: QueryClient, snapshot: HistorySnapshot) => |
| 30 | snapshot.forEach(([queryKey, data]) => client.setQueryData(queryKey, data)); |
no test coverage detected