Lauri
Lauri
Seems like the culprit is: https://github.com/TanStack/query/blob/8104a407cc9347fbf74b64bcb5adc77c2f8daaea/packages/query-devtools/src/Devtools.tsx#L1365C3-L1372C4 Which calls `queryCache.find`, which in turns calls `matchQuery`, which for whatever reason rehashes all existing queries: https://github.com/TanStack/query/blob/8104a407cc9347fbf74b64bcb5adc77c2f8daaea/packages/query-core/src/utils.ts#L88 This line in particular: https://github.com/TanStack/query/blob/8104a407cc9347fbf74b64bcb5adc77c2f8daaea/packages/query-core/src/utils.ts#L103 Shouldn't hashing...
> I've tried your reproduction but it doesn't crash for me. What do I need to do to make it crash please? Load it once (make sure devtools are open),...
> > Shouldn't hashing happen only at the time of fetching to make sure we can trust the hash to be exactly what params were passed to the queryFn? >...
Ah, you're absolutely right. I misunderstood the code / was thrown off by the console logs – sorry for my misunderstanding. I thought it was calling `hashQueryKeyByOptions` against all the...
Is there a reason why Devtools don't use that? 🤔
Just checked the implementation - could it be due to the locking mechanism? It's a bit unclear (to an outsider) why the function as a whole needs locks? Refresh session,...
> I'd like to add that the raising of an exception issue I mentioned in chat with the OP from almost a year ago was fixed. > > @gregpalaci we...
> For all the people who have created a table with whitelists/blacklists, it only works if you disable the RLS (Row-Level Security) or enable at least the select for anonymous...
I initially did, but for some reason I changed it to use-upsert level. I think thee may have been discrepancies between swc and supabase. But will double check, as I...
@psteinroe, added the necessary changes + updated supabase package versions. A few notions: 1. The `opts` parameter carries around `react-query` options to `supabase`. There's no splitting or sanitisation happening it...