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

🐛 [BUG] #181

Open
Afee2019 opened this issue Aug 6, 2023 · 0 comments
Open

🐛 [BUG] #181

Afee2019 opened this issue Aug 6, 2023 · 0 comments
Assignees

Comments

@Afee2019
Copy link

Afee2019 commented Aug 6, 2023

🐛 React 18 + StrictMode 下, LayerPopup不显示

📷 Step to reproduce

  1. 创建默认的React 18 应用
  2. 拷贝范例代码并替代 App.tsx

🏞 Expected result

鼠标移到区域上后,不显示图层信息框

🚑 Any additional [like screenshots]

将main.tsx中 <React.StrictMode> 注释后,就能显示图层信息框了
ReactDOM.createRoot(document.getElementById('root')!).render(
// <React.StrictMode>
<App />
// </React.StrictMode>,
)

  • LarkMap Version:
    "@antv/l7": "^2.17.7",
    "@antv/larkmap": "^1.4.1",
  • Platform:
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
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

2 participants