@tanstack/solid-query 4.19.0 → 4.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3749,8 +3749,7 @@ describe('createQuery', () => {
3749
3749
  <Page />
3750
3750
  </QueryClientProvider>));
3751
3751
  await sleep(10);
3752
- expect(renders).toBe(2);
3753
- expect(hashes).toBe(2);
3752
+ expect(renders).toBe(hashes);
3754
3753
  });
3755
3754
  it('should refetch when changed enabled to true in error state', async () => {
3756
3755
  const queryFn = jest.fn();
File without changes
@@ -33,7 +33,7 @@
33
33
 
34
34
  // TYPES
35
35
  // UTILS
36
- const isServer = typeof document === 'undefined';
36
+ const isServer = typeof window === 'undefined' || 'Deno' in window;
37
37
  function noop$1() {
38
38
  return undefined;
39
39
  }