Skip to content

Commit

Permalink
docs(router): fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev committed Dec 4, 2023
1 parent ce93a6c commit f94342a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/docs-app/docs/features/api/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ import { PageServerLoad } from '@analogjs/router';
import { Product } from '../products';

export const load = async ({ fetch, event }: PageServerLoad) => {
setCookie(event, 'test', 'test'); // setting the cookie
setCookie(event, 'products', 'loaded'); // setting the cookie
const products = await fetch<Product[]>('/api/v1/products');

return {
Expand All @@ -207,10 +207,9 @@ import { parseCookies } from 'h3';
import { PageServerLoad } from '@analogjs/router';

export const load = async ({ event }: PageServerLoad) => {
console.log('shipping');
const cookies = parseCookies(event);

console.log('test cookie', cookies['test']);
console.log('products cookie', cookies['products']);

return {
shipping: true,
Expand Down

0 comments on commit f94342a

Please sign in to comment.