Skip to content

Commit

Permalink
fix: opt in ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreiffers committed Nov 21, 2024
1 parent b7a6cec commit c308c8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/ui/src/lib/layouts/feedback-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ExternalLinkIcon } from '@navikt/aksel-icons';
import { type Dictionary, interpolate } from '@fdk-frontend/dictionaries';

import styles from './feedback-layout.module.scss';
import { cookies } from 'next/headers';

type FeedbackLayoutProps = {
dictionary: Dictionary;
Expand All @@ -19,6 +20,9 @@ const FeedbackLayout = async ({
baseUri,
communityBaseUri,
}: PropsWithChildren & FeedbackLayoutProps) => {
// Opt-in SSR
cookies();

return (
<div className={styles.feedbackLayout}>
{children}
Expand Down

0 comments on commit c308c8b

Please sign in to comment.