rtzrtz.
Explore posts from serversSingleFlight does not work (See Example)
though i will mention using const items as shared state isn't entirely reliable, there will be a few copies of it on the server that may not be producing the behaviour you expectHaha of course, this is just for the minimal prototype here. But either way, items are getting fetched - and I understand SingleFlight would return that fetch with the action-response directly, right?
11 replies
behaviour of createAsync in hooks - why cached?
i hoped it wouldnt, but im still wondering why it doesnt. When I use
const res = createAsync(() => getData());
on PageComponent (Home.tsx) it does refetch on every navigation, right? Why does it not refretch when used inside a hook?14 replies
behaviour of createAsync in hooks - why cached?
Oh, thats a leftover from my actual code. I just edited it, thanks!
Well, I'm using the same instance of the query, but not of the hook, right? I'm using the hook at multiple places, and each hook is a new instance, including the internal createAsync primitive.
14 replies
DTDrizzle Team
•Created by rtzrtz. on 11/27/2023 in #help
import of drizzle-orm makes typescript complain about missing "document"
@Nishant Shrestha nope, unfortunately not
5 replies