Skip to content

Commit

Permalink
fix: add temp workaround for RSC compat
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Nov 25, 2022
1 parent 726c9fc commit 1166b61
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/studio/NextStudio.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {lazy, memo} from 'react'
import type {StudioProps} from 'sanity'
import {memo} from 'react'
import {type StudioProps, Studio} from 'sanity'

import {NextStudioFallback} from './NextStudioFallback'
import {type NextStudioLayoutProps, NextStudioLayout} from './NextStudioLayout'
import {NextStudioNoScript} from './NextStudioNoScript'
import {NextStudioSuspense} from './NextStudioSuspense'

const Studio = memo(lazy(() => import('./LazyStudio')))
// eslint-disable-next-line no-warning-comments
// FIXME: https://github.com/vercel/next.js/issues/43147
// const Studio = memo(lazy(() => import('./LazyStudio')))

/** @beta */
export interface NextStudioProps extends StudioProps {
Expand Down

0 comments on commit 1166b61

Please sign in to comment.