hoaiduyit / react-pannellum

46 stars 38 forks source link

How to useMemo when click on Hotspot and clear WebGL cache #60

Open Deco90 opened 3 years ago

Deco90 commented 3 years ago

Hello, I'm actually trying to replace the React-pannellum package and see if your package will solve a particular problem for me. I have a problem with WebGL not cleaning and after a few clicks on the hotspot I get an error. That's why i want to use UseMemo and maybe its. On click hotspot i will want to navigate another picture. I want to use react hook and functional component.

my code below:

import React from "react"; import ReactPannellum from "react-pannellum";

function App() {

return (

); }

export default App;