You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using next.js to change pages. when i leave the viewer page i want to disconnect the highlighter and reconnect. I have tried disposing but the isSetup toggle remains true due to that being its default state. when disposing could you make it toggle isSetup to false? Or is there another way to destroy components like highlighter that I should consider? I want to in general keep my obc.components and custom component instances when I page change instead of killing the components instance and rebuild.
the outcome is that i am unable to hook up the event listeners again to the dom object that is created a new when I page change
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
Check that this is a concrete bug. For Q&A join our Community.
Added isSetup equals to false for the async function when you dispose the highlighter. Therefore if whenever you specify highlighter.dispose() every time you switch pages the isSetup becomes false.
Reviewed-by: Goulielmos Floros
Ref: ThatOpen#556
Added isSetup equals to false for the async function when you dispose the highlighter. Therefore if whenever you specify highlighter.dispose() every time you switch pages the isSetup becomes false.
Reviewed-by: Goulielmos Floros
Ref: ThatOpen#556
Added isSetup equals to false for the async function when you dispose the highlighter. Therefore if whenever you specify highlighter.dispose() every time you switch pages the isSetup becomes false.
Reviewed-by: Goulielmos Floros
Ref: #556
Describe the bug 📝
I am using next.js to change pages. when i leave the viewer page i want to disconnect the highlighter and reconnect. I have tried disposing but the isSetup toggle remains true due to that being its default state. when disposing could you make it toggle isSetup to false? Or is there another way to destroy components like highlighter that I should consider? I want to in general keep my obc.components and custom component instances when I page change instead of killing the components instance and rebuild.
the outcome is that i am unable to hook up the event listeners again to the dom object that is created a new when I page change
Reproduction▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Pro Memory: 751.36 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.18.1 - ~/Documents/Local_Repository/nextjs-with-supabase/node_modules/.bin/node npm: 10.9.0 - /usr/local/bin/npm pnpm: 9.13.2 - /usr/local/bin/pnpm Browsers: Brave Browser: 130.1.71.123 Chrome: 131.0.6778.265 Safari: 17.4.1
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅
The text was updated successfully, but these errors were encountered: