Basilisk
TTCTheo's Typesafe Cult
•Created by Basilisk on 2/24/2023 in #questions
React Query - Slow performance with many small cached requests
Just so you know I was using "@tanstack/react-query-devtools": "^4.0.10", after I updated to current newest "@tanstack/react-query-devtools": "^4.24.10" it is working much better with devtools enabled. However, it still suffers the same performance issues when opened. So it seems there was a bug that when devtools were hidden it was still rendered as if there were opened.
10 replies
TTCTheo's Typesafe Cult
•Created by Basilisk on 2/24/2023 in #questions
How can I cache blob image provided by backend (React)?
I asked backend to give me images in base64 format instead of the blob and this way there are properly cached because base64 is always the same and URL.createObjectURL(blob) always produces new url.
It would be the best to have images in just ULR format would be the best , but unfortunately, frontend doesn't have permissions to image's storage in my project right now and I have to deal with backend serving me images directly.
4 replies
TTCTheo's Typesafe Cult
•Created by Basilisk on 2/24/2023 in #questions
React Query - Slow performance with many small cached requests
I know that having just URLs for images instead of base64 would be much better and easier, but unfortunately, frontend doesn't have permissions to image's storage in my project right now.
This is not a public app, so maybe this is the correct security approach, but if not let me know.
10 replies
TTCTheo's Typesafe Cult
•Created by Basilisk on 2/24/2023 in #questions
React Query - Slow performance with many small cached requests
10 replies
TTCTheo's Typesafe Cult
•Created by Basilisk on 2/24/2023 in #questions
React Query - Slow performance with many small cached requests
In React profiler, there are plenty of: QueryRow key =[] which correspond to react query keys.
10 replies
TTCTheo's Typesafe Cult
•Created by Basilisk on 2/24/2023 in #questions
React Query - Slow performance with many small cached requests
There are 3s of 15ms long checkIfSnapshotChanged functions calls in performance tab.
10 replies