Skip to content

Commit 5c7e8eb

Browse files
Use @react-aria/utils useLayoutEffect
1 parent 566e443 commit 5c7e8eb

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

apps/docs/app/routes/_docs/profil/farger.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
'use client';
21
import { createFileRoute } from '@tanstack/react-router';
3-
import { useLayoutEffect, useState } from 'react';
2+
import { useState } from 'react';
3+
import { useLayoutEffect } from '@react-aria/utils';
44

55
export const Route = createFileRoute('/_docs/profil/farger')({
66
component: RouteComponent,

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@obosbbl/grunnmuren-icons-svg": "workspace:*",
2222
"@obosbbl/grunnmuren-react": "workspace:*",
2323
"@portabletext/react": "3.2.0",
24+
"@react-aria/utils": "3.25.1",
2425
"@sanity/client": "6.24.1",
2526
"@sanity/code-input": "5.1.2",
2627
"@sanity/vision": "3.68.3",

pnpm-lock.yaml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)