Commit 109863ba authored by tom's avatar tom

change stale time and update screenshots

parent 7071d972
...@@ -46,7 +46,7 @@ export default function useQueryWithPages<QueryName extends PaginatedQueryKeys>( ...@@ -46,7 +46,7 @@ export default function useQueryWithPages<QueryName extends PaginatedQueryKeys>(
return fetch(`${ apiPath }${ params.length ? '?' + params.join('&') : '' }`); return fetch(`${ apiPath }${ params.length ? '?' + params.join('&') : '' }`);
}, },
{ staleTime: Infinity, ...options }, { staleTime: page === 1 ? 0 : Infinity, ...options },
); );
const { data } = queryResult; const { data } = queryResult;
......
...@@ -8,11 +8,11 @@ import TestApp from 'playwright/TestApp'; ...@@ -8,11 +8,11 @@ import TestApp from 'playwright/TestApp';
import Blocks from './Blocks'; import Blocks from './Blocks';
const BLOCKS_API_URL = '/node-api/blocks'; const BLOCKS_API_URL = '/node-api/blocks?type=block';
const STATS_API_URL = '/node-api/stats'; const STATS_API_URL = '/node-api/stats';
const hooksConfig = { const hooksConfig = {
router: { router: {
query: { tab: 1 }, query: { tab: 'blocks' },
isReady: true, isReady: true,
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment