Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is iframe not supported ? #170

Open
zzzzzzzcccccc opened this issue Dec 26, 2024 · 3 comments
Open

Why is iframe not supported ? #170

zzzzzzzcccccc opened this issue Dec 26, 2024 · 3 comments

Comments

@zzzzzzzcccccc
Copy link

Hi, Is it possible to consider supporting iframe ?

@violabg
Copy link

violabg commented Dec 27, 2024

I asked the same question, #110, no answer yet, maybe is related to this:
#87
Maybe we could have an optional configuration to allow who needs this to work.

@imsunhao
Copy link

imsunhao commented Jan 4, 2025

我现在的临时方案如下

/**
 * 初始化 React 扫描
 */
export const initReactScan = async () => {
  if (!__DEV__) return

  try {
    const { scan, Store } = await import('react-scan')

    Store.isInIframe.value = false
    scan({
      enabled: true,
      log: false,
    })

    console.log('React 扫描初始化成功')
  } catch (error) {
    console.error('React 扫描初始化失败:', error)
  }
}

@DAcodedBEAT
Copy link

note: also reported in #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants