Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jan 18, 2022
1 parent 557a79a commit a359b6f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/kit/test/apps/basics/src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ export const handle = sequence(
return resolve(request);
},
async ({ request, resolve }) => {
if (request.url.pathname === '/errors/error-in-handle') {
const pathname = request.url.pathname;
if (pathname === '/errors/error-in-handle') {
throw new Error('Error in handle');
}

const response = await resolve(request, {
hydrate:
request.url.pathname !== '/no-hydrate' && request.url.pathname !== '/no-hydrate/no-js',
router:
request.url.pathname !== '/no-router/a' && request.url.pathname !== '/no-hydrate/no-js',
hydrate: pathname !== '/no-hydrate' && pathname !== '/no-hydrate/no-js',
router: pathname !== '/no-router/a' && pathname !== '/no-hydrate/no-js',
ssr: !request.url.pathname.startsWith('/no-ssr')
});

Expand Down

0 comments on commit a359b6f

Please sign in to comment.